Jump to content

Rotate Vector in Chops (Edit)


Justin K

Recommended Posts

Hey all,

Simple goal here, trying to rotate a vector (@N) around another (v@cross) in chops within a wrangle.  Im not sure what I am doing wrong.  Ideally I would like to import two vectors into the chop network-- @N and v@cross, rotate N by Cross, and then bring  the updated N vectors back into sops using a channel sop.  I've attached a file.  

Thanks in advance!

 

 

Edit:  I should point out I am trying to use quaternion rotations

 I found this thread on the sidefx forums but havent been able to implement the attribute create method as was suggested

https://www.sidefx.com/forum/topic/31300/?page=1#post-145135

 

 

 

chops_rot_test_update.hipnc

Edited by JKeil
Link to comment
Share on other sites

UPDATE-- it seems like there is a fairly easy way around this.  

All you really need the chops network for is to perform operations on the angle, as opposed to the vectors by the angle.  

You can then just kick out the angle and apply the quaternion rotation within a wrangle or a vop as you prefer!

See new scene file

wavyguy_testing3.hipnc

Edited by JKeil
  • 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...