Created
February 25, 2017 02:14
-
-
Save nicelifeBS/e57ab76907e4b8586e09d1ddf617e009 to your computer and use it in GitHub Desktop.
Katana: Create a teleparameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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