hi folks, 

I noticed something I never saw before, so I'd like to know if I'm missing 
something : 
in a nutshell, I got different results when I connect the outCurve datas from a 
node to a motionPath, and when I pass the same connection through a nurbsCurve 
before connecting it to a motionPath.
I'm sure an example would be much self-explanatory, so you can run this snippet 
to see what I mean

sks = [cmds.createNode('joint', ss=1) for _ in xrange(2)]
nurbs = cmds.nurbsPlane(ch=0, ax=[0,1,0], w=2, lr=4)[0]
crv = cmds.duplicateCurve(nurbs + '.u[0.5]', ch=1)[0]
curveIso = cmds.listConnections(crv + '.create', s=1, d=0)[0]
cmds.setKeyframe(sks[-1], v=-4, at='tz')
cmds.currentTime(10)
cmds.setKeyframe(sks[-1], v=-14, at='tz')
cmds.skinCluster(nurbs, sks, tsb=1)

# - first setup
mp = cmds.createNode('motionPath')
cmds.connectAttr(curveIso + '.outputCurve', mp + '.geometryPath')
cmds.setAttr(mp + '.uValue', .2)
loc = cmds.spaceLocator()[0]
cmds.connectAttr(mp + '.allCoordinates', loc + '.t')
cmds.setAttr(mp + '.fractionMode', True)
# - second setup
mp = cmds.createNode('motionPath')
cmds.connectAttr(crv + '.ws', mp + '.geometryPath')
cmds.setAttr(mp + '.uValue', .2)
loc = cmds.spaceLocator()[0]
cmds.connectAttr(mp + '.allCoordinates', loc + '.t')
cmds.setAttr(mp + '.fractionMode', True)


As you can see if you scroll the timeline, the 2 locators have a different 
behavior. However, the 2 setups are the same, except for a nurbsCurve (that I'd 
like to bypass)
So I suspect the nurbsCurve does another operation, but I don't know which one 
exactly and why. Any explanation about that ?
cheers

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/b3bfc780-fd8e-4942-83d7-e83b532a0da1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to