bandini Posted September 20, 2014 Share Posted September 20, 2014 Hey there, I am wondering how to get a pull-down list of available point attributes in a text field of an OTL. Just like when you have an attributetransfer sop, there is a little arrow there with a list of available attributes from the incoming geometry. Thanks!Adam Quote Link to comment Share on other sites More sharing options...
mawi Posted September 20, 2014 Share Posted September 20, 2014 Choose a string parameter and go to the menu tab in the parameter description. Check use menu and in the drop down select Replace(Field + single selection...) Now you need to write a python snippet in the menu script field. result = [] geo = hou.pwd().geometry() for attr in geo.pointAttribs(): result.append(attr.name()) result.append(attr.name()) return result Dont forgett to set the Menu script Language to python... 1 Quote Link to comment Share on other sites More sharing options...
bandini Posted September 20, 2014 Author Share Posted September 20, 2014 Thanks, Martin! 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.