Skip to content

Instantly share code, notes, and snippets.

@AndresMWeber
Created July 5, 2016 21:45
Show Gist options
  • Save AndresMWeber/2301f8f024d2cf8bea6d6cecd0c7ff53 to your computer and use it in GitHub Desktop.
Save AndresMWeber/2301f8f024d2cf8bea6d6cecd0c7ff53 to your computer and use it in GitHub Desktop.
Boiler plate function for SDK creation
def connect_sdk(driverAttr, drivenObj, attribute, driverValues=[], drivenValues=[]):
for driverValue, drivenValue in zip(driverValues, drivenValues):
pm.setDrivenKeyframe(drivenObj,
currentDriver=driverAttr,
at=attribute,
driverValue=driverValue,
value=drivenValue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment