Notifications
Clear all

[Closed] Assigning path and object nodes in path_constraint

I’m a little confused over the documentation for assigning path_constraint controllers to objects. So far I’ve worked out that:

pathConst = Path_Constraint() -- create a constraint
pathInterface = pathConst.constraints -- get it's interface
 pathInterface.appendTarget $Circle01 50.0 -- add a target path? (not sure)
pathConst.percent = 50.0 -- assign percentage along a path

This is all fine and dandy (ie. it RUNS). But I cannot really figure out the actual assignment of the controller to the object.

2 Replies
2 Replies
(@ofer_z)
Joined: 2 years ago

Posts: 0

hi,

it should be something like (i don’t have max available at the moment, so i didn’t test this):
obj.pos.controller = pathConst – where obj is the parameter holding the object

hOpe this helps,
o

(@erilaz)
Joined: 2 years ago

Posts: 0

Just what I needed! Thanks. Controllers are my weak point (among many others!)