magneto Posted November 9, 2013 Share Posted November 9, 2013 Hi, If you are using the Wrangle SOPs or Inline VOP, etc, is there a way to define the default values of an attribute? AttribCreate allows you to do this. For example if I want the Cd to be red for the target points, but blue for everything else (default). I haven't seen a function or a way to do this in VEX. Is this doable without using the AttribCreate? Thanks Quote Link to comment Share on other sites More sharing options...
tjeeds Posted November 14, 2013 Share Posted November 14, 2013 Not that I have seen. If it's only speed that you're worried about, turning off Write Values makes it very fast. 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted November 14, 2013 Author Share Posted November 14, 2013 Thanks that's what I thought. I also turn off Write Values, though it's not speed I am worried but having to use another node to do this before the Wrangle node. It's the same problem when you want to create variables in AttribWrangle as there is no addvariablename function available there. So you have to resort to using AttribCreate again. It would be nice if the AttribWrangle was more self-sufficient. Quote Link to comment Share on other sites More sharing options...
tjeeds Posted November 15, 2013 Share Posted November 15, 2013 Yeah, it's just the same old limitations that have always been there. There's not even a way to cast an attribute as a vector on creation in CVEX, at least you can use the AddAttribute for that in regular VEX. I actually don't mind using the AttribCreate too much, I just think of vex binding as a shortcut when you don't want to do anything fancy. 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted November 15, 2013 Author Share Posted November 15, 2013 Hopefully when CVEX become the law of the VEX-land, it will be complete 1 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.