SebO
06-28-2010, 06:23 PM
Hi,
OK, I’m learning this python thing. I’ve created a parentconstraint, activated and so on, but now i need to get the objects that i want to constrain in there. How do I do that???
here’s what i got so far.
from pyfbsdk import *
def CreateCons (Name, Type, Active):
myManager = FBConstraintManager()
myCons = myManager.TypeCreateConstraint(Type)
myCons.Name = Name
myCons.Active = Active
CreateCons("Test", 3, True)
Using MB 2010
Thanks
OK, I’m learning this python thing. I’ve created a parentconstraint, activated and so on, but now i need to get the objects that i want to constrain in there. How do I do that???
here’s what i got so far.
from pyfbsdk import *
def CreateCons (Name, Type, Active):
myManager = FBConstraintManager()
myCons = myManager.TypeCreateConstraint(Type)
myCons.Name = Name
myCons.Active = Active
CreateCons("Test", 3, True)
Using MB 2010
Thanks
