Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Problem following motion path

Problem following motion path

Anonymous
Not applicable
2,282 Views
13 Replies
Message 1 of 14

Problem following motion path

Anonymous
Not applicable

I wonder if somebody could help me please. I’ve got a vehicle that I want to travel around a sphere. I’ve created a motion path round the sphere but when the vehicle follows the path it flips and rotates all over the place. I’ve tried changing the from axis and up axis as well as checking and unchecking the follow box but nothing seems to help it follow the path normally all the way. I don’t really want to have to adjust it manually so didn’t know if there’s was anything I could do to make it follow the path properly/realistically?

Thanks in advance for any help.

0 Likes
2,283 Views
13 Replies
Replies (13)
Message 2 of 14

tdHendrix
Collaborator
Collaborator

Not sure if this will help in your case, but you can try the technique from this video:

 

https://www.youtube.com/watch?v=05suBsDZ4ZE

 

It helped solve my flipping issues before.


Greg Hendrix - Senior Technical Animator
LinkedIn : Twitter
0 Likes
Message 3 of 14

Anonymous
Not applicable

Thanks for that but unfortunately it didn’t help as my path goes in all three axis. My path is projected onto a Nurbz sphere in all directions

0 Likes
Message 4 of 14

mspeer
Consultant
Consultant

Hi!

 

Just don't use Follow (Vector) from your Motion path , cause you don't have a constant up-vector, instead use Contrain ->  Aim for the orientation of the car (use the sphere or an other object at sphere center as aim target).

0 Likes
Message 5 of 14

Anonymous
Not applicable

Sorry to ask a really dumb question but how do I actually do that? Particularly the part about setting the aim for the orientation of the car?

0 Likes
Message 6 of 14

mspeer
Consultant
Consultant

Hi!

 

Ok, one step back.

The Motion Path already has an option to orient to the origin of an object.

 

1. Enable Follow and as World Up Type use "Object Up"

2. As World Up Object enter the name of the object (transform node) you want to orient too (like your sphere or simply a locator).

Just make sure all axes definitions are set right.

0 Likes
Message 7 of 14

Anonymous
Not applicable

Unfortunately that didn't work either 😞 Do I need to go to Constrain > Aim after?

0 Likes
Message 8 of 14

mspeer
Consultant
Consultant

Hi!

 

What does this mean: "that didn't work" ?

Error message, nothing changes,...?

 

Please upload your scene-file.

0 Likes
Message 9 of 14

Anonymous
Not applicable

Nothing changed at all, it still kept changing direction and rotating. 😞

 

Thanks for helping with this, I've attached the model

0 Likes
Message 10 of 14

mspeer
Consultant
Consultant

Hi!

In your scene there is no motion path applied.

But i found your problem. Select one bus choose Move Tool and set Axis Orientation to Object.

That's your problem these axes are used for orientation but they are not aligned with the bus.

 

Modify your pivot and then bake pivot, with proper orientation it will work fine.

 

0 Likes
Message 11 of 14

Anonymous
Not applicable

Thank you, I'll try that. One thing I didn't understand though was you said moving then baking the pivot - I didn't understand about baking it?

0 Likes
Message 12 of 14

mspeer
Consultant
Consultant

Hi!

 

By default the rotation settings for the pivot will only be used for the current action and will not be stored after editing, so you need to "bake" it.

0 Likes
Message 13 of 14

Anonymous
Not applicable

Okay now this is going to be a dumb question - how do I actually bake it?

0 Likes
Message 14 of 14

mspeer
Consultant
Consultant

Hi!

 

1. Selecting Move or Rotation Tool

2. Hit hotkey "D" or "Insert" to change to Pivot Mode

3. Modify the Pivot

4. Modify -> Bake Pivot

 

Please read the Maya Online Help / Documentation for more details.

0 Likes