Search - User list
Full Version: Q about creating color (not Cd!) attribute via wrangle
Root » Houdini Indie and Apprentice » Q about creating color (not Cd!) attribute via wrangle
KiLa
Hi, title says it all: how can i create ‘true’ color atttribute, i.e. 3 float array with Color..subttype?

When i say ‘true’ color, i mean that when i look geometry spreadsheet, the coloum headers display r, g and b - e.g 'color', 'color' and 'color'.

If I try to do it like this, via wrangle:

v@color = { 1, 0, 0 };

Headers display ''color', 'color' and 'color', but if I do it via Attribute create, and set type to float and Color and size to 3..then headers display r,g and b.

Cheers
-k
animatrix_
Hi,

You can do this by using the setattribtypeinfo function:

v@clr = 0;
setattribtypeinfo ( 0, "point", "clr", "color" );
KiLa
Haa Ty Sir!

-k
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB