Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: How to make things look like rotate  (Read 10441 times)

magesh_magi1

  • Newbie
  • *
  • Posts: 4
    • View Profile
How to make things look like rotate
« on: March 13, 2008, 01:24:50 am »

Hi ,
I'm new to Anim8or so you can expect some silly questions also :) .. i have created a battery model i just want to create a sequence in which it should rotate on the floor.. i tried some possiblities and its not working.
Logged

phantom king

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: How to make things look like rotate
« Reply #1 on: March 13, 2008, 01:59:52 am »

well, what you can do is create a figure, give it a bone(exculding the root) and rotate that bone, then apply it that battery (at least thats how i make things rotate XD)
Logged

kreator

  • Hero Member
  • *****
  • Posts: 1146
  • Anim8or, Blender, & Carrara. A Great Combination!
    • View Profile
    • Anim8orWorld
Re: How to make things look like rotate
« Reply #2 on: March 13, 2008, 02:22:30 am »

Or u could use a controller script see this thread
http://animanon.xtreemhost.com/index.php?topic=148.0
Logged
O

3D Joe Wiltshire

  • Sr. Member
  • ****
  • Posts: 728
  • Winter's Coming :O
    • View Profile
Re: How to make things look like rotate
« Reply #3 on: March 13, 2008, 12:54:20 pm »

Are you in scene mode? if you are, all you have to do is click the object, click the rotate tool, de-press the Y axis, and hold down the mouse

ps. make sure you click on the green key so that it only affects the frame you're on, otherwise it will affect all of the frames
Logged

shadowwinds

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to make things look like rotate
« Reply #4 on: March 14, 2008, 12:26:28 pm »

hey kreator
about the controller script, how to adjust the orientation in which the object rotates?
for your script it rotates the object like as your given example, the fan of a windmill.
how do i get it to rotate the way a ceiling fan does?

i've been trying different ways to get it to work. somehow i can't get the bones to rotate with my objects in that way either..
help would be very appreciated
thanks in advance
Logged

Kubajzz

  • Flying Platypus
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 548
  • Little doggie ate my avatar...
    • View Profile
Re: How to make things look like rotate
« Reply #5 on: March 14, 2008, 12:37:05 pm »

You can use this script for rotation around the Y axis:

Code: [Select]
float $speed;
$speed = 5;
$orientation = (0, sin($speed*time), 0, cos($speed*time));

How it works? Orientation variable is a quaternion - it consists of 4 values, eg. (0, 0, 0, 0); you can see that the last row of my script is almost the same as the Kreator's one, but the "sin($speed*time)" formula is on the secont position of the quaternion instead of the first - that means Y axis rotation instead of X axis... Easy isn't it?

Also check the ASL controller scripts collection on Anim8or.org for another orientation script with explanation how to use it.
« Last Edit: March 14, 2008, 12:39:58 pm by Kubajzz »
Logged

shadowwinds

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to make things look like rotate
« Reply #6 on: March 14, 2008, 12:47:16 pm »

thanks for the script and for the list of controller scripts, really helpful
oh and..
in preferences my frame rate's set at 24
however when i play my scenes the frame rate comes up as 83.5 ...
is this a bug in 9.6? or is it just some setting i have to change?
if it's a setting, any idea how to correct it?
sorry for all the questions.
Logged

Kubajzz

  • Flying Platypus
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 548
  • Little doggie ate my avatar...
    • View Profile
Re: How to make things look like rotate
« Reply #7 on: March 14, 2008, 04:18:34 pm »

Go to View>Preferences and check the "Limit Playback" checkbox in the bottom of the window 8)
Logged