Jump to content

vector qualifier in attribwrangle/attribvop


Recommended Posts

How can I create a vector attribute with a vector qualifier in attribwrangle?

When I enter:

v@up= set(0,1,0);

the up attribute shows up as up[0],up[1],up[2] in the details view.  I need it to be up[x],up[y],up[z] so that transform sops etc will modify the value. 

 

(Of course, I could use a vopsop with addattrib, but I'm trying to use attribwrangle more lately)

 

Thanks!

Link to comment
Share on other sites

I tried, but it gives an error.  "Call to undefined function "addattribute" "

It works in pointwrangle though.

 

Out of curiosity, is there any way to change the qualifier of an attribute after creation? 

(Or would you need to create a new one with the correct qualifier and copy the values over?)

Link to comment
Share on other sites

addattribute is not in CVEX. You can use setattrib, but that requires the attribute to be created before hand, even if empty. That should allow you to set the right signature.

 

but it is by far not so fast to use lie v@up

Link to comment
Share on other sites

addattribute is not in CVEX. You can use setattrib, but that requires the attribute to be created before hand, even if empty. That should allow you to set the right signature.

I just tried, and I can't see how to have setattrib change the signature, either in attribvop or attribwrangle.  I guess the way to change it is in attribute create for now.  Thanks all

Link to comment
Share on other sites

but it is by far not so fast to use lie v@up

 

Yes definitely not as quick, and also shows the same problem when you want to read from any input other than the first.

 

I just tried, and I can't see how to have setattrib change the signature, either in attribvop or attribwrangle.  I guess the way to change it is in attribute create for now.  Thanks all

 

No I meant you can use setattrib to set the attribute but you have to use something like AttribCreate beforehand or after like anim said. There are no other way to create attributes than using @ and setattrib in AttribWrangle AFAIK.

Edited by magneto
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...