I want to write a python shelf tool, which add 'onCreate' section a python snippet to selected HDA node.
But the default scriptLanguage of 'onCreate' is HScript. And I can't find the API that relate to the 'Edit as' menu.

Here's my tool script:
____________________________________________________________________________________________________
import hou
select_node = hou.selectedNodes()
definition = select_node.type().definition()
#add 'on create' Section
definition.addSection("OnCreated", "some python snippet", hou.compressionType.NoCompression)
____________________________________________________________________________________________________

