Skip to content

Instantly share code, notes, and snippets.

@splinecraft
Created September 7, 2016 18:39
Show Gist options
  • Save splinecraft/e136c0e11837ad74197c550109eb9db5 to your computer and use it in GitHub Desktop.
Save splinecraft/e136c0e11837ad74197c550109eb9db5 to your computer and use it in GitHub Desktop.
select curves demo from DK
sel=pm.ls(sl=True)
print sel
curveList = pm.keyframe(q=True, sl=True, name=True)
print curveList
control_xform = pm.selected()[0]
curveList = control_xform.inputs()
node_types = ["animBlendNodeAdditive", "animBlendNodeAdditiveDL", "animBlendNodeAdditiveRotation", "animBlendNodeBoolean", "animCurve"]
curveList = control_xform.inputs(type=node_types)
# curveList = control_xform.inputs(type=node_types, plugs=True)
result = control_xform.outputs()
print curveList
dir(control_xform)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment