Mash color to nParticles

Mash color to nParticles

daniel_uppling
Contributor Contributor
318 Views
0 Replies
Message 1 of 1

Mash color to nParticles

daniel_uppling
Contributor
Contributor

Hi,

I'm transfering MASH data to a nParticle system.

I've successfully transfered MASH position, rotation , scale and index with expressions through Per Particle Attributes by using this expression:

 

nParticleShape1.position = MASH1.inPositionPP;

nParticleShape1.rotationPP = MASH1.inRotationPP;

nParticleShape1.scalePP = MASH1.inScalePP;

nParticleShape1.indexPP = MASH1.inIdPP;

 

Can I pull MASH color info in a similar way? I tried this but it doesn't work:

nParticleShape1.rgbPP = MASH1.inColorPP;

 

I get this error:

// Error: Attribute not found or variable missing '$': MASH1.inColorPP

 

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:

nParticleShape1.rgbPP = MASH1.inScalePP;

 

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?

 

Thank you!

0 Likes
319 Views
0 Replies
Replies (0)