I'm still trying to get everything working..... my code looks something like this now
CODE
import maya.cmds as cmds
#cmds.file (force= True, new=True)
cmds.select( all=True )
cmds.delete()
cmds.polySphere( name='mySphere' )
cmds.move( 2,0,0, r=True)
cmds.polyCube( name='myCube' )
cmds.move( -2,0,0, r=True)
# create constraint
constraint = cmds.parentConstraint('mySphere', 'myCube', mo=True, weight=1 )
# retreive channel names
weights = cmds.parentConstraint( constraint,q=True, weightAliasList=True )
# use them
cmds.setDrivenKeyframe( currentDriver='mySphere.rotateY',
driverValue=90,
attribute=constraint[0]+'.'+weights[0],
value=0 )
cmds.setDrivenKeyframe( currentDriver='mySphere.rotateY',
driverValue=0,
attribute=constraint[0]+'.'+weights[0],
value=1 )
so from my understanding when the sphere rotates 90 degrees on Y the parent constraint should turn off, but it remains on?
I might be doing something really dumb and not knowing it.. does anyone know whats going on?