3DS Max Script Controller - Equate Rotations of Two Objects to One Another

3DS Max Script Controller - Equate Rotations of Two Objects to One Another

ttazinazzo
Participant Participant
645 Views
3 Replies
Message 1 of 4

3DS Max Script Controller - Equate Rotations of Two Objects to One Another

ttazinazzo
Participant
Participant

Might be an easy question in theory but I've been having trouble with it in practice.

 

I have a model with two beams - a front support beam and a rear support beam. Both beams rotate about an individual pivot point (i.e. both beams swing about their connection points) and rotation is constrained to the x-axis (each beam can only swing in the x axis orientation).

 

However, the rotation of the rear support beam must equal the rotation of the front support beam - in other words, they must be tied/linked so that they each rotate together the same degree about the x-axis while constrained to their connection points.

 

I need to use a Script Controller and have been trying to add a controller to the X rotation of the rear support beam like this but I'm not sure how to get it to work so that they're tied together:

 

at time currenttime $Front_Support_Beam\X Rotation 

 

Any ideas? Thank you!

0 Likes
646 Views
3 Replies
Replies (3)
Message 2 of 4

denisT.MaxDoctor
Advisor
Advisor

A short video showing the behavior of these two beams would be better than any description. Try to ask again... but in a way that is clear.

0 Likes
Message 3 of 4

denisT.MaxDoctor
Advisor
Advisor

as I understood from your description, both beams just have to have the same controller in X sub controller of an Euler XYZ

0 Likes
Message 4 of 4

ttazinazzo
Participant
Participant

The attached picture here might help - both the rear and front support beams are connected to a T-Beam connector on both sides at the red pivot points.

 

Both the rear and front support beams are allowed to rotate forward and back but should be rotating in unison - so I'm trying to find a way to tie their rotations together so that they both rotate in unison by the same number of degrees.

 

What line of script would I use to equate the axis rotations in Script Controller?

0 Likes