<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OpenMaya plugin use texture as color input in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/openmaya-plugin-use-texture-as-color-input/m-p/9392499#M6401</link>
    <description>&lt;P&gt;Hey,&lt;BR /&gt;I'm trying to write a plugin that takes the color out from a file texture as input.&lt;BR /&gt;I'm using the new openmaya api in python and just cant get it to work even just setting the output to the input just results in all black pixels, maybe im doing something wrong:&lt;BR /&gt;I'm doing the following:&lt;BR /&gt;&lt;BR /&gt;OpenMaya.MFnNumericAttribute()&lt;BR /&gt;numeric_attr_fn.createColor(...)&lt;BR /&gt;then taking the input asFloatVector()&lt;BR /&gt;and setting the output with&amp;nbsp;setMFloatVector(...)&lt;BR /&gt;&lt;BR /&gt;I also tried adding UV coordinates which seemed to do something as it's now calling compute for each pixel it seems but still just outputs (0,0,0).&lt;BR /&gt;anybody have experience with this? thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 22 Mar 2020 19:40:48 GMT</pubDate>
    <dc:creator>mvn882</dc:creator>
    <dc:date>2020-03-22T19:40:48Z</dc:date>
    <item>
      <title>OpenMaya plugin use texture as color input</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/openmaya-plugin-use-texture-as-color-input/m-p/9392499#M6401</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;I'm trying to write a plugin that takes the color out from a file texture as input.&lt;BR /&gt;I'm using the new openmaya api in python and just cant get it to work even just setting the output to the input just results in all black pixels, maybe im doing something wrong:&lt;BR /&gt;I'm doing the following:&lt;BR /&gt;&lt;BR /&gt;OpenMaya.MFnNumericAttribute()&lt;BR /&gt;numeric_attr_fn.createColor(...)&lt;BR /&gt;then taking the input asFloatVector()&lt;BR /&gt;and setting the output with&amp;nbsp;setMFloatVector(...)&lt;BR /&gt;&lt;BR /&gt;I also tried adding UV coordinates which seemed to do something as it's now calling compute for each pixel it seems but still just outputs (0,0,0).&lt;BR /&gt;anybody have experience with this? thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 19:40:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/openmaya-plugin-use-texture-as-color-input/m-p/9392499#M6401</guid>
      <dc:creator>mvn882</dc:creator>
      <dc:date>2020-03-22T19:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: OpenMaya plugin use texture as color input</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/openmaya-plugin-use-texture-as-color-input/m-p/9521018#M6402</link>
      <description>&lt;P&gt;After messing around with it more I found I have to make an MPxShadingNodeOverride for it to work, not the most elegant solution though &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 16:23:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/openmaya-plugin-use-texture-as-color-input/m-p/9521018#M6402</guid>
      <dc:creator>mvn882</dc:creator>
      <dc:date>2020-05-16T16:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: OpenMaya plugin use texture as color input</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/openmaya-plugin-use-texture-as-color-input/m-p/13134885#M6403</link>
      <description>&lt;P&gt;I tried to implement your solution but it didnt work, I am still getting black, trying to make a reconstruct blue channel node for normal maps that are packed to only R and G.&lt;BR /&gt;Any pointer in the right direction would be helpful &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8406652"&gt;@mvn882&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 23:19:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/openmaya-plugin-use-texture-as-color-input/m-p/13134885#M6403</guid>
      <dc:creator>revoconner</dc:creator>
      <dc:date>2024-11-06T23:19:12Z</dc:date>
    </item>
  </channel>
</rss>

