Omy Posted December 6, 2011 Share Posted December 6, 2011 i created a otl via python now if i do d=hou.node("obj/otl").type().definition() d.sections().keys() ['CreateScript', 'DialogScript', 'Contents'] I only see these.I dont find a python module how to turn the event handler to python module in the otl by scripting Quote Link to comment Share on other sites More sharing options...
graham Posted December 6, 2011 Share Posted December 6, 2011 You can create a PythonModule section with hou.HDADefinition.addSection(). You then must set the section to be Python using hou.HDADefintion.setExtraFileOption(). d.addSection("PythonModule") d.setExtraFileOption("PythonModule/IsPython", True) 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.