Jump to content

Outlawed

Members
  • Content count

    8
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Outlawed

  • Rank
    Peon

Personal Information

  • Name
    David
  • Location
    Canada
  1. hython command to execute a TOP Network?

    Is there a button on the node to execute the operation? You might need something like pressButton() For example, if I was executing a ROP to press the 'Render to Disk' button: hou.parm('/out/mantra/execute').pressButton() I don't have Hou 17 in front of me to test
  2. Custom Shortcuts for a specified Node

    Here's something I wrote a while ago, should be what you're looking for ####################################################################### ## Create a node and connect it to the selected node ## ####################################################################### ''' "xform" is the node().type().name() "transform" is what I want to call the name. ''' if(hou.selectedNodes()): sopnode = hou.selectedNodes()[0] # print sopnode parentpath = sopnode.parent().path() myxform = hou.node(parentpath).createNode('xform','transform') next_input = sopnode.outputs() orig_pos = sopnode.position() new_pos = (orig_pos[0]-1, orig_pos[1]-1) # print next_input for i in next_input: file_node = i.inputs() for p in file_node: myxform.setFirstInput(sopnode) myxform.setPosition(new_pos) #xform.moveToGoodPosition() #######################################################################
  3. Run script in Command Line tools with Python

    You can write a .py file to load a hipfile, set render frame ranges etc, and execute the ROP ( pressButton() command ). Save that .py file on disk, then just run: hython /path/to/your/file.py Hython is the non-gui python version of Houdini. Just like how hbatch is the Hscript non-GUI version of Houdini.
  4. Script to select visible geometry

    This will select the OBJ-level nodes that have their Display Flag set to True" OBJ = hou.node("/obj") objnodes = OBJ.children() mylist = [] for n in objnodes: print n if n.isDisplayFlagSet() == True: mylist.append(n) print mylist for i in mylist: hou.ObjNode.setSelected(i, 1)
  5. Drag your network view pane tab into the python shell. It will say something like hou.ui.findPaneTab('panetab7') Something like the following should get you started: a = hou.ui.findPaneTab('panetab7') b = hou.NetworkEditor.screenBounds(a) hou.NetworkEditor.setVisibleBounds(a, b, transition_time=0.0, max_scale=0.0, set_center_when_scale_rejected=False)
  6. How to find Node name for createNode in Python

    hou.node("/obj/geo1/file1").type().name() Drop that in the python shell. it will return the operator type name. Or just hou.node("/obj/geo1/file1").type()
  7. Solaris Reveal

    But the USD issue still stands. Or can it take .abc and internally convert it on the fly?
  8. Solaris Reveal

    Correct me if I'm wrong, but when Solaris is released, the only studios who can use it are ones that have a USD-based pipeline (Animation, not just assets), and intend to use Renderman? Mantra hasn't had any development, Karma will be in Beta, and any other Houdini-supported render engines will need to have their Hydra delegates working in Solaris. Am I getting this wrong?
×