python How to open opmenu.parameters ???

   1337   0   0
User Avatar
Member
1 posts
Joined: Oct. 2011
Offline
# python How to open opmenu.parameters ???
import hou
def selectOpenPar_objViewportisolator1():
iso = hou.node(“obj/viewportisolator1”)
pane_tab = hou.ui.curDesktop().createFloatingPaneTab(hou.paneTabType.Parm)# Parameters and Channels > Parameters… // menu <actionItem id=“opmenu.parameters”> ???
if iso != None:
iso.setCurrent(on=True, clear_all_selected=True)
else:
hou.node(“obj/”).createNode(“viewportisolator”).setCurrent(on=True, clear_all_selected=True)
pane_tab.setCurrentNode(hou.node(“obj/viewportisolator1”))
pane_tab.setPin(True)
return pane_tab
pass

Attachments:
Ashampoo_Snap_2018年11月10日_20h02m20s_003_.png (44.7 KB)

  • Quick Links