Particle instances inherit particles color and opacity ?

Particle instances inherit particles color and opacity ?

Silverland
Collaborator Collaborator
2,877 Views
6 Replies
Message 1 of 7

Particle instances inherit particles color and opacity ?

Silverland
Collaborator
Collaborator

So i found this article - https://support.solidangle.com/display/arnsupp/2014/06/18/Using+particle+colors+%28rgbPP%29+on+insta...

 

 

But it doesnt work for me. Maybe i do something wrong. So i have created nparticle and it has instances called "Cone". I have applied to the Cone another AI standart surface shader and under NPARTICLE SHAPE NODE where its said "Export Attributes" i entered word "rgbPP" and after that i am using "User Color Data" for my input of "Cone AI Standart surface" shader and in the attributes i enter rgbPP again but my instances still  doesnt have the same color that my  particles have and also i want to have it per AGE so they are the same. But as you can see in the ARNOLD RENDER VIEW that my Cones are white but particles blue at the beginning and yellow at the end and they also transparent at the beginning and opaque at the end. The MAYA FILE INCLUDED. Please help me to make them to have same color and opacity based on the AGE. Maybe there are another method and this one is wrong.

PARTICLESAMPLER5.pngPARTICLESAMPLER6.png

0 Likes
Accepted solutions (2)
2,878 Views
6 Replies
Replies (6)
Message 2 of 7

Silverland
Collaborator
Collaborator

O! It suddenly started to work when i hit playback button! So (IN THE MAYA FILE I GAVE YOU) my instances now inherit same colors that nparticles are and also its Aged. The only problem i a m having is with Opacity now. What connect to what to have also opacity inherit it?

0 Likes
Message 3 of 7

Silverland
Collaborator
Collaborator

My guess in under "Export Attributes" to add something like "Opacity PP" maybe also? But there are only one field...

0 Likes
Message 4 of 7

Stephen.Blair
Community Manager
Community Manager
Accepted solution

Add opacityPP to the Export Attributes list, and use an aiUserDataFloat in the shader tree.

 

opacityPP.jpg



// Stephen Blair
// Arnold Renderer Support
Message 5 of 7

Silverland
Collaborator
Collaborator

Thanks a lot! But how do i add the opacityPP to the Export Atrributes if there are only one field and its already filled with "rbpPP".Do i have to put coma and after that "opacityPP" or there are a way to create one more "Export Attributes field" ?

0 Likes
Message 6 of 7

Stephen.Blair
Community Manager
Community Manager
Accepted solution

Just put a space between the attribute names in the Export Attributes box.



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 7 of 7

Silverland
Collaborator
Collaborator

Great! Thanks! Everything works like a charm now!

0 Likes