View Full Version : Querying the RGB value of a texture node at a given UV coordinate
jporter313 04-18-2008, 11:25 PM I would like to write a script that will return the RGB value of a specified UV coordinate of a texture. How would I do this?
|
|
JamesPiechota
04-19-2008, 03:48 AM
colorAtPoint
jporter313
04-21-2008, 05:10 PM
found it, thanks.
jporter313
04-21-2008, 07:44 PM
k, here's another one:
What MEL command would I use to add an RGBpp attribute to a particle object?
Is it possible to add RGBpp with a flag in the particle creation command?
JamesPiechota
04-22-2008, 04:55 AM
To add an rgbPP attribute to 'particleShape1' (and the initial state attribute rgbPP0):
addAttr -ln "rgbPP" -dt vectorArray particleShape1;
addAttr -ln "rgbPP0" -dt vectorArray particleShape1;
Not sure what you mean by the second question?
I think he means is there a flag he can designate at the creation of a particle to assign it the rgbPP rather than doing it after the particles are created.
I dont have much experience with the particle systems but if I find time later maybe ill start messing around with them.
jporter313
04-22-2008, 05:32 PM
Thanks Eric, yeah that's exactly what I was asking.
And thank you James for the answer to my other question.
CGTalk Moderation
04-22-2008, 05:32 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.