<?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 Re: sample images for RGB data? in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13684201#M17997</link>
    <description>&lt;P&gt;&lt;EM&gt;There are probably ways to do it in BiFrost&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Im just gonna answer to this part. Yes there is and its pretty straight forward, you would be done already in BF and it would be a lot faster than doing it Python, if you have a bunch of data. I get your point of nodes and code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jun 2025 17:18:32 GMT</pubDate>
    <dc:creator>sepu6</dc:creator>
    <dc:date>2025-06-16T17:18:32Z</dc:date>
    <item>
      <title>sample images for RGB data?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13682019#M17995</link>
      <description>&lt;P&gt;I need to query a point on a mesh, convert the point to UV coordinates, and then sample the image to determine what color corresponds to that point on the mesh (and then do something if the color = some rgb values).&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm close to solving the point-on-mesh to UV space, but I've found nothing for sampling images.&amp;nbsp; I could use pillow to extract pixel information, but then I have re-map it for UV space (I think pillow origin is upper left, while maya UV origin is lower left)&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Maya does this image sampling already for displacement maps, emitting particles from a surface (emitter1.textureRate), and in various other ways.&amp;nbsp; But I can't find any documentation on how to do it programmatically.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There are probably ways to do it in BiFrost, but I'd rather do it with python so it can be integrated into existing python tool sets (plus I hate node-based programming.&amp;nbsp; Just a personal dislike--it's fine if that's your thing but I find it annoying. )&lt;BR /&gt;&lt;BR /&gt;Use cases:&amp;nbsp; telling meshes (trees/grass/bushes) where to be instanced, or pulling the red lines of a USGS topography map to create height displacement.&lt;BR /&gt;&lt;BR /&gt;any help is appreciated.&lt;BR /&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 01:48:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13682019#M17995</guid>
      <dc:creator>bmagner888</dc:creator>
      <dc:date>2025-06-15T01:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: sample images for RGB data?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13683173#M17996</link>
      <description>&lt;P&gt;check out &lt;STRONG&gt;cmds.colorAtPoint()&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 08:09:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13683173#M17996</guid>
      <dc:creator>FirespriteNate</dc:creator>
      <dc:date>2025-06-16T08:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: sample images for RGB data?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13684201#M17997</link>
      <description>&lt;P&gt;&lt;EM&gt;There are probably ways to do it in BiFrost&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Im just gonna answer to this part. Yes there is and its pretty straight forward, you would be done already in BF and it would be a lot faster than doing it Python, if you have a bunch of data. I get your point of nodes and code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 17:18:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13684201#M17997</guid>
      <dc:creator>sepu6</dc:creator>
      <dc:date>2025-06-16T17:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: sample images for RGB data?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13684726#M17998</link>
      <description>&lt;P&gt;just a follow up question, can you build BiFrost networks with python?&amp;nbsp; Can you get the best of both worlds and access BiFrost from other custom tools so that, as a TD, you can provide artists with tools where the artists don't have to know BiFrost?&amp;nbsp; The artist clicks a button, and the graphs are build automatically so they get the benefits without needing specialized training?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 02:09:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13684726#M17998</guid>
      <dc:creator>bmagner888</dc:creator>
      <dc:date>2025-06-17T02:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: sample images for RGB data?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13685264#M17999</link>
      <description>&lt;P&gt;I'm no expert with Bifrost, but I don't think you can construct the graphs purely from Python (at least not last time I looked), but you are maybe thinking about this the wrong way. Your users are not Python coders either, but you still write the python, distribute it to them and get them to run it some how. The same is true with Bifrost. Think of each Bifrost graph you make and save as a python-like module. You make the Bifrost graphs and save them out as files and you distribute these to your end users in the same way you do python files. They don't necessarily need to know how they work, or interact with them. I'm pretty sure you can do the loading, connecting, and execution of the distributed graphs via Python.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 08:26:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13685264#M17999</guid>
      <dc:creator>FirespriteNate</dc:creator>
      <dc:date>2025-06-17T08:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: sample images for RGB data?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13686442#M18000</link>
      <description>&lt;P&gt;Correct as FirespriteNate you can't just create graph with pure python, there is def certain thing that you can do with python to make your life easier,&amp;nbsp;like to automate connecting lots of inputs/outputs, building rigs depending on Bifrost graph and various other tedious tasks.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/BIFROST/ENU/?guid=__CommandsPython_index_html" target="_blank"&gt;https://help.autodesk.com/view/BIFROST/ENU/?guid=__CommandsPython_index_html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can do stuff like this for example&amp;nbsp;&lt;BR /&gt;&lt;A href="https://github.com/evanatherton/jotun_bifrost_utils" target="_blank"&gt;https://github.com/evanatherton/jotun_bifrost_utils&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But what would you be doing in the graph is just a compound that can be publish and share studio wise and the artist can use, with whatever parameters you promote to the top level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then they can manipulate stuff through the AE like this. You get the idea.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="maya_0MlAl6ZnMC.gif" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1544213i83B64C4FBC870CDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="maya_0MlAl6ZnMC.gif" alt="maya_0MlAl6ZnMC.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 23:14:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/sample-images-for-rgb-data/m-p/13686442#M18000</guid>
      <dc:creator>sepu6</dc:creator>
      <dc:date>2025-06-17T23:14:25Z</dc:date>
    </item>
  </channel>
</rss>

