Notifications
Clear all

[Closed] Scipt Comtroller Rotation?

When I use the Scriptcontroller to rotate one object by another one by writing:
“$Name.rotation” the object gets rotated by the other one, although in the wrong direction. So I link it to a dummy, that I rotate.
But if I use the Script Float Controller just for one arch of the Euler XYZ and write:
“$name.rotation.y” the Object is rotating less than the other one, and there happens some angle snapping.
What is going on here? Don´t know anything about scripting really.

Thanks Schnupps

4 Replies

try “inverse $Name.rotation”
Also you could add a “dependsOn $Name” (this should be placed at the top of the script) to dynamically update the scene whenever you modify the controlling object

 PEN

Try an orientation constraint instead as it is far easier to work with.

2 Replies
(@frogspasm)
Joined: 1 year ago

Posts: 0

Is there any way to put a lag into the animation using the orientation constraint?
I want to control the rotation of an large group of objects by one object, but have them all lag behind the one before it. The rotation script let’s you introduce a time factor into it.
If I could get a lag out of the orientation constraint that might be easier.

Thanks for the workaround aaaachoooo!

 PEN
(@pen)
Joined: 1 year ago

Posts: 0

No you can’t get a lag with an orientation constraint. So you would have to go with the script controller or expression. Using an expression on the X,Y and Z seperatly will give you control over each axis.