<?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 Mash color to nParticles in Maya Dynamics Forum</title>
    <link>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-color-to-nparticles/m-p/12436722#M133</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm transfering MASH data to a nParticle system.&lt;/P&gt;&lt;P&gt;I've successfully transfered MASH position, rotation , scale and index with expressions through Per Particle Attributes by using this expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nParticleShape1.position = MASH1.inPositionPP;&lt;/P&gt;&lt;P&gt;nParticleShape1.rotationPP = MASH1.inRotationPP;&lt;/P&gt;&lt;P&gt;nParticleShape1.scalePP = MASH1.inScalePP;&lt;/P&gt;&lt;P&gt;nParticleShape1.indexPP = MASH1.inIdPP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I pull MASH color info in a similar way? I tried this but it doesn't work:&lt;/P&gt;&lt;P&gt;nParticleShape1.rgbPP = MASH1.inColorPP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;// Error: Attribute not found or variable missing '$': MASH1.inColorPP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I experimented with assigning the scale per particle to the particle color and that works, so it's at least possible to write colors to the particles. Like this:&lt;/P&gt;&lt;P&gt;nParticleShape1.rgbPP = MASH1.inScalePP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess I'm missing something. In short, can I pull MASH color data and use it in a per particle expression, the same way I get positions, rotations , scale and index?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2023 17:34:19 GMT</pubDate>
    <dc:creator>daniel_uppling</dc:creator>
    <dc:date>2023-12-12T17:34:19Z</dc:date>
    <item>
      <title>Mash color to nParticles</title>
      <link>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-color-to-nparticles/m-p/12436722#M133</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm transfering MASH data to a nParticle system.&lt;/P&gt;&lt;P&gt;I've successfully transfered MASH position, rotation , scale and index with expressions through Per Particle Attributes by using this expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nParticleShape1.position = MASH1.inPositionPP;&lt;/P&gt;&lt;P&gt;nParticleShape1.rotationPP = MASH1.inRotationPP;&lt;/P&gt;&lt;P&gt;nParticleShape1.scalePP = MASH1.inScalePP;&lt;/P&gt;&lt;P&gt;nParticleShape1.indexPP = MASH1.inIdPP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I pull MASH color info in a similar way? I tried this but it doesn't work:&lt;/P&gt;&lt;P&gt;nParticleShape1.rgbPP = MASH1.inColorPP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;// Error: Attribute not found or variable missing '$': MASH1.inColorPP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I experimented with assigning the scale per particle to the particle color and that works, so it's at least possible to write colors to the particles. Like this:&lt;/P&gt;&lt;P&gt;nParticleShape1.rgbPP = MASH1.inScalePP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess I'm missing something. In short, can I pull MASH color data and use it in a per particle expression, the same way I get positions, rotations , scale and index?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 17:34:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-color-to-nparticles/m-p/12436722#M133</guid>
      <dc:creator>daniel_uppling</dc:creator>
      <dc:date>2023-12-12T17:34:19Z</dc:date>
    </item>
  </channel>
</rss>

