View Full Version : Mixing path constraint with attachment
quantum_red 02-18-2003, 03:14 AM I'd like to use a path constraint, but only constrain the Z axis. I want the x and y axis handled by a link to a parent object. Any way to constraints for only x y or z and not all? Or do I have to get into expression or script controllers to handle this?
|
|
if you only want to constrain a object to one axes then you will only be moving it in one direction anyway (ie. up and down). So why would you use a path to do this?
it's fairly simple to set up an expression contraint on a single axis so that it matches another object. is this what you want?
you just need to put position xyz controllers on the two objects then on the object you want constrained apply an expression controller to whatever axis you want. Inside the expression controller properties you make a new variable which you assign to the corresponding axis of your 'parent' object, then write this variable as the expression. if you want it to be offset then just add or minus the number of units that you want it offset by.
ie.
variable: parentPosX
expression: parentPosX + 50
cheers,
phil
CGTalk Moderation
01-14-2006, 11:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.