Symbolic Posted November 4, 2011 Share Posted November 4, 2011 Hi, For a python expression in a channel box, is there a way that this expression can query the name of the channel (parameter name) that it lives in? ex: a string channel has the following expression: hostChannel="some python methode to get the channel name" return str(hostChannel) So the string in the string box is the actual parameter name. Thanks, Quote Link to comment Share on other sites More sharing options...
graham Posted November 4, 2011 Share Posted November 4, 2011 The $CH variable will tell you what your parameter is called, so you could do this: hou.expandString("$CH") Quote Link to comment Share on other sites More sharing options...
Symbolic Posted November 4, 2011 Author Share Posted November 4, 2011 The $CH variable will tell you what your parameter is called, so you could do this: hou.expandString("$CH") Great! Works perfectly. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.