peliosis Posted August 31, 2005 Share Posted August 31, 2005 I'm experimenting with attributes and have a question. How can I change vector to float attribute or extract a single color. I try to paint creases on geometry and changed Cd[3] point to creasevalue[3] vertex attribute which doesn't work because it's vector type. I think it can be done with some VEX sop but perhaps it easier? Peter Quote Link to comment Share on other sites More sharing options...
DaJuice Posted August 31, 2005 Share Posted August 31, 2005 Hi peliosis, try the AttributePromote SOP. Quote Link to comment Share on other sites More sharing options...
peliosis Posted August 31, 2005 Author Share Posted August 31, 2005 Hi peliosis, try the AttributePromote SOP. 20988[/snapback] With attribute promote I changed from point to vertex type, but I cannot change from vector (Cd) to float or just isolate one of vector elements. Quote Link to comment Share on other sites More sharing options...
michael Posted August 31, 2005 Share Posted August 31, 2005 just use the first element... Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted August 31, 2005 Share Posted August 31, 2005 There is a Vector to Float VOP if that's what you're talking about. otherwise, you can still extract the vector channel into a float if you're doing this in VEx. i.e. Cd.r = fRed; HTH, Alex Quote Link to comment Share on other sites More sharing options...
DaJuice Posted August 31, 2005 Share Posted August 31, 2005 Ahrg yes, sorry. I should try reading the post properly. If you're trying to paint an attribute you could also use an AttribCreate, set it to float and then override that attribute in the Override Color field of the Paint SOP. Quote Link to comment Share on other sites More sharing options...
peliosis Posted September 1, 2005 Author Share Posted September 1, 2005 Haha, if only I read the help through... Thanks a lot DaJuice, I've done it in a more complicated way before I read from you how easy it was:) I painted a box, with a point sop I added an alpha attr (since it's float) and with a point expression mapped red channel to it. Then I changed the name and type with attrib promote and finished with a full functional creaseweight attribute:) Like building a plant to power the watch. Too often I'm trying to figure out things by myself than look up simple straightforward solutions in help. Thanks Peter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.