Translate along local axis in XYZ using expressions.

   2619   1   1
User Avatar
Member
4 posts
Joined: March 2014
Offline
Using the transform node, I am rotating the object using expressions. I am also trying to translate using expressions.
However, the translate values are translating along the global axis not the local axis.
I have set the transform order to Scale Rot Trans.
Cannot use the transform axis SOP as it only transforms 1 axis.
I understand you can get an interactive local axis gimbal.
Is there an option to do this in expressions?
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
Have you tried using a different transform order? “Scale Trans Rot” would do the translation in the “local axis”. If you want to keep the translation order as “Scale Rot Trans” for some reasons, another thing that you could try is to put another transform SOP before the one that does rotation. Then that transform SOP can do the translation before the rotation.
Andrew / アンドリュー
  • Quick Links