How can I rotate a curve deformed using python, without compromising its shape ?
Please help me ! :cry:
Python SOP Node
3161 3 1- Adcay
- Member
- 3 posts
- Joined: 8月 2009
- Offline
- Soothsayer
- Member
- 874 posts
- Joined: 10月 2008
- Offline
Try buildRotateAboutAxis(axis, angle_in_deg):
http://www.sidefx.com/docs/houdini11.0/hom/hou/hmath [sidefx.com]
http://www.sidefx.com/docs/houdini11.0/hom/hou/hmath [sidefx.com]
--
Jobless
Jobless
- graham
- Member
- 1922 posts
- Joined: 11月 2006
- Online
Once you've built a transform matrix using either rotateAboutAxis, extracting it from some object or creating it yourself using hmath you can then either call hou.Geometry.transform(), or transformPrims() if your geometry has other things that aren't your curve. Another option is to take the point position of each point on the curve, multiply its position by the xform matrix and set it back. This method however will not transform any vector point attributes on those points so if you have attributes you should go with the transform functions on hou.Geometry.
Graham Thompson, Technical Artist @ Rockstar Games
- Adcay
- Member
- 3 posts
- Joined: 8月 2009
- Offline
-
- Quick Links