Notifications
Clear all

[Closed] Up Object for LookAt_constraint?

I don’t see that this is possible, but you never know.

I wrote a UI to expose the LookAt Constraint values so those can be set up before the constraint is established – as well as removing the silly need to drag-select the target object – but I’m missing one component I’d love to have.

In Maya, their Aim Constraint allows for the up vector to be determined by an Up Object.
Does Max have that possibility hidden somewhere? Maybe it’s in plain sight.
Either way, whether directly or indirectly, I’d like to be able to define the up vector of an aimed object by determining it’s relationship to an “up object”.

Possible?

Thanks,

Alec

5 Replies
1 Reply
 eek
(@eek)
Joined: 11 months ago

Posts: 0

Its called the UpNode and is in plain sight in the lookAt constraint rollout. By default its world.

 PEN

silly need to drag-select the target object

Yes you are definitly a Maya user Alec;)

Example for you, sorry but I just had to use the silly teapot.

t=teapot()
b=box pos:[0,100,0]
s=sphere pos:[0,0,100]

lc=lookat_constraint()
lc.pickUpNode=s
lc.upnode_world=false
lc.upnode_ctrl=0
lc.appendTarget b 100

t.rotation.controller=lc
1 Reply
(@lonerobot)
Joined: 11 months ago

Posts: 0

Leave the teapot alone!

Thanks guys. When I was writing my UI, I completely blew past that constraint method (pickUpNode). Dumb.

I’ll try to decrease the number of comments that show my gang affiliation, Paul.
I must begin to think like a Max user…

Thanks again,

Alec

 PEN

Alec you will find Max a fair bit different in the respect to Max/Mel and how you go about things. There are a couple of good resources that you should have a look at. One on my site here http://paulneale.com/tutorials/MaxMaya/maxMaya.htm needs some updating but should get you some good information and also http://www.scriptspot.com/bobo/mel2mxs/mel2mxs.htm which will get you some information that will make it a bit easier to pick up Max script and know the syntax after having used Mel. I have used Maya a fair amount in production in Film and TV but not as much as Max so I understand your pain in trying to pick up the new ways.