Jump to content

Vectorcasting in vex


gaurav

Recommended Posts

Greetings folks,

When a vector attribute is added to the points inside vops why does it show up as a 3 floats representaion in details view ?

Same is true when taking a cross product of 2 vectors eg. C = N x V.

Resultant vector C comes out as a 3 floats representation C[0],C[1],C[2] instead of C[x],C[y],C[z]

1. Why so ?

2. Would a vector casting be needed here ? If yes, of what signature and type ?

I would like it to be consistent as the original vector representations which can be accessed by xyz components in local variables.

Thanks,

Edited by vectorblur
Link to comment
Share on other sites

as internal computation of VOPs it should be no difference between vectors and 3floats, but if you want to create attribute as vector which adds(xyz) and it's transformed as vector, normal or point, you can simply change Type Modifier on Add Attribute VOP to vector, normal or position

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