daily pastebin goal
50%
SHARE
TWEET

Houdini Isolate Select

a guest Jul 9th, 2013 143 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2. def isolate():
  3.     sel = hou.selectedNodes()
  4.     if not sel:
  5.         sel_string = "*"
  6.     else:
  7.         sel_string = " ".join([n.name() for n in sel])
  8.     try:
  9.         if hou.os.environ['CUR_ISOLATE'] == sel_string:
  10.             sel_string = "*"
  11.     except: pass
  12.     hou.hscript('viewdisplay -G "%s" `run("viewls -n")`' % sel_string)
  13.     os.environ['CUR_ISOLATE'] = sel_string
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top