Amabilis Software    3D Canvas Community    3D Canvas Discussion Forums  Hop To Forum Categories  Plug-In Development and Scripting    How do I rotate an object with a script?
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
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. Frown 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. Smile

Timo


"Eat me! See if I care."
 
Posts: 118 | Location: Finland | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
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
 
Posts: 228 | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
So the orientation is given with vectors?! I thought so at first, but then I read somewhere that it isn't...

Thanks. Smile


"Eat me! See if I care."
 
Posts: 118 | Location: Finland | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
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
 
Posts: 228 | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Amabilis Software    3D Canvas Community    3D Canvas Discussion Forums  Hop To Forum Categories  Plug-In Development and Scripting    How do I rotate an object with a script?

© Amabilis Software 2003-2007