Skip to content

Instantly share code, notes, and snippets.

@nicelifeBS
Created February 25, 2017 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicelifeBS/e57ab76907e4b8586e09d1ddf617e009 to your computer and use it in GitHub Desktop.
Save nicelifeBS/e57ab76907e4b8586e09d1ddf617e009 to your computer and use it in GitHub Desktop.
Katana: Create a teleparameter
def CreateTeleParam(parentParam, targetParam):
teleParam = parentParam.createChildString(
'%sTeleParam' % targetParam.getName(), '')
teleParam.setExpression('getParam("%s").param.getFullName()'
% targetParam.getFullName())
teleParam.setHintString(repr({'widget': 'teleparam'}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment