How do I rotate an object with a script?

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

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. <!– s:( –><img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" /><!– s:( –> I’ve tried a lot, but in vain.

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. <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!– s:) –>

Timo

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, 3DC 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

So the orientation [b:3oyv8vii]is[/b:3oyv8vii] given with vectors?! I thought so at first, but then I read somewhere that it isn’t…

Thanks. <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!– s:) –>

You must be logged in to reply in this thread.

4 posts