trubble with point wrangle

   1617   2   0
User Avatar
Member
136 posts
Joined: July 2005
Offline
I want to split code from one “Point Wrangle SOP” into parts, but
something went wrong
What have i missed here?
Edited by AndrewVK - Nov. 22, 2016 16:32:14

Attachments:
PW_difference.hip (192.6 KB)

User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
Hi
You need to type cast lx, ly and lz as vector when assigning them to the “frame” matrix:
//Part2_calculate_twist
matrix3 frame = set(v@lx,v@ly,v@lz);
rotate (frame,0.5*@ptnum,@lz);
p@orient = quaternion(frame);

-b
http://www.racecar.no [www.racecar.no]
User Avatar
Member
136 posts
Joined: July 2005
Offline
bonsak
Hi
You need to type cast lx, ly and lz as vector when assigning them to the “frame” matrix:
//Part2_calculate_twist
matrix3 frame = set(v@lx,v@ly,v@lz);
rotate (frame,0.5*@ptnum,@lz);
p@orient = quaternion(frame);

-b
Oh!!! so simple
Thank You!
  • Quick Links