3D Canvas Community
3D Canvas Discussion Forums
Plug-In Development and Scripting
How do I rotate an object with a script?|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
I'm doing an animation, and I'd need an object to just rotate with a constant speed. I thought of using a cript for this. But being a total noob with 3dc scripting I just can't get it.
Could someone be so kind and post an animation script that would just rotate an object (or group, if easier) around it's y -axis. The speed also doesn't have to be given in any "real" format (like revolutions/second), just that I can set in the code to something that looks good. Timo "Eat me! See if I care." |
||
|
|
Member |
What I really think is that Richard needs to add more intuitive scripting methods that wrap around the vector-based SetOrientation stuff.
I'd dearly love to be able to specify x, y, and z rotation values in something sensible like radians or degrees, in both world and object coordinates. Vectors? Matrices? The brain hurts... I mean, 3D Canvas is an artist's tool, not a programmer's tool-the scripting API should therefore make it easier for the artist to do things, rather than requiring the artist to spend hours staring at books of math equations infested with more Greek letters than the downtown Athens phone directory. -Mel |
|||
|
|
Member |
So the orientation is given with vectors?! I thought so at first, but then I read somewhere that it isn't...
Thanks. "Eat me! See if I care." |
|||
|
|
Member |
Yeah, according to the 3DC scripting help, the parameters for Get/SetOrientation are the group's directional XYZ vector and the group's XYZ up vector.
-Mel |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|
3D Canvas Community
3D Canvas Discussion Forums
Plug-In Development and Scripting
How do I rotate an object with a script?
