eyevex Posted January 12, 2016 Share Posted January 12, 2016 I seem to have no problem getting to the actual script .... sec = node.type().definition().sections()['event'] contents = sec.contents() but want to change the language type for that section... ala type properties "edit as" pulldown I expected it to be on the section object but don't see it... Anyone know? Quote Link to comment Share on other sites More sharing options...
eyevex Posted January 15, 2016 Author Share Posted January 15, 2016 Starting to think this may not be possible. Any suggestions? Quote Link to comment Share on other sites More sharing options...
graham Posted January 15, 2016 Share Posted January 15, 2016 node.type().definition().setExtraFileOption("event/IsPython", True) Quote Link to comment Share on other sites More sharing options...
eyevex Posted January 18, 2016 Author Share Posted January 18, 2016 Ahhh.. Thanks Graham. I was poking about for a quite bit and didn't come across it. Seems to work. (|;-D> Quote Link to comment Share on other sites More sharing options...
eyevex Posted January 20, 2016 Author Share Posted January 20, 2016 This seems really handy. Is there a list of possible name:val usable by hou.HDADefinition().setExtraFileOption() been looking through the documentation... 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.