multiple desktops. RS_IPRRV via F8

This commit is contained in:
Kuba Winnicki 2019-06-19 13:31:28 +02:00
parent f79bb9cf45
commit f660c0d22b
2 changed files with 6 additions and 5 deletions

View File

@ -8,7 +8,7 @@ def install_aliases():
(5, 'from hhacks import install_desktop as _; _()'),
(6, 'from hhacks import make_geo_cache as _; _()'),
(7, "from hhacks import iprs; iprs()[0].killRender();iprs()[0].startRender()"),
(8, 'from hhacks import *; rop,_=rop_redshift(); rop.parm("trange").set(1); render(rop)'),
(8, 'from hhacks import *; rop,_=rop_redshift(); rop.parm("RS_IPRRV").pressButton()'),
(9, 'from hhacks import *; rop,_=rop_redshift(); rop.parm("trange").set(0); render(rop)'),
(10, "from hhacks import *; render((hou.selectedNodes() or rop_redshift())[0])"),
(11, "from hhacks import save_n_render as fn; fn(inc=False)"),
@ -112,9 +112,10 @@ def install_desktop(pane_name="Network"):
def set_desktop():
desktops = {d.name(): d for d in hou.ui.desktops()}
if '2x2' in desktops:
desktops['2x2'].setAsCurrent()
for name in ['2x2', '3x2']:
if name in desktops:
desktops[name].setAsCurrent()
break
def make_output_sop(geo, connect_to='', name=''):
sop = geo.createNode('null', '_'.join(s for s in ['OUT', name] if s))

View File

@ -16,7 +16,7 @@ if __name__ == '__main__':
print('Platform `{}` not supported... yet.', file=stderr)
exit(1)
chdir(setup_path[platform])
if '-r3' in argv:
if '-rs3' in argv:
redshift_path = '/opt/redshift3'
else:
redshift_path = '/opt/redshift'