trubble with point wrangle

   1644   2   0
User Avatar
Member
136 posts
Joined: 7月 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 - 2016年11月22日 16:32:14

Attachments:
PW_difference.hip (192.6 KB)

User Avatar
Member
459 posts
Joined: 10月 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: 7月 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