Jump to content

Vex: Create a vector/quaternion with literals (x,y,z) and (r,g,ba)


Recommended Posts

In Vex I create a vector as following:

 

 

    v@test = set(1,2,3);

 

However this results in vector with indexes
(test[0], test[1], test[2])

 

How do I have it so that i actually uses literals
(test[x], test[y], test[z])

Edited by schiho
Link to comment
Share on other sites

You can address the components of vectors using v@test.x, v@test.y, v@test.z in VEX. If you mean the appearance of the vector components in the Geometry Spreadsheet, you can use the setattribtypeinfo() VEX command to set the type to one of the defined types in the help page: http://www.sidefx.com/docs/houdini/vex/functions/setattribtypeinfo.html

  • 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...