- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm a novice at Maxscript and programming in general, and trying to create a script that would change the settings for multiple objects that already have a LookAt Constraint applied. Failing so far.
Issue I'm running into is that if you apply a LookAt Constraint to objects by Animation > Constraints > LookAt Constraint, it gets put into the Rotation List as a layer, so I could change things by
for i in $selection do
(
i.rotation.controller.LookAt_Constraint.controller.upnode_ctrl = 1
)
Now if one assigns the LookAt Constraint from the motion panel, directly to Rotation, I no longer have the list and I have to change things by the following.
for i in $selection do
(
i.rotation.controller.upnode_ctrl = 1
)
So the question is, what's the best way to make changes to multiple objects that may have the LookAt Constraint in different positions of the Rotation controller, and also ignore those that do not even have the LookAt Constraint if they are accidentally part of the selection?
Solved! Go to Solution.