Jump to content

Is there a way to define default attribute values in VEX


magneto

Recommended Posts

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...