Compare commits
2 Commits
3d6ff40dab
...
435b27961d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
435b27961d | ||
|
|
d8b8b8a0f3 |
@ -112,7 +112,7 @@ def install_desktop(pane_name="Network"):
|
|||||||
|
|
||||||
def set_desktop():
|
def set_desktop():
|
||||||
desktops = {d.name(): d for d in hou.ui.desktops()}
|
desktops = {d.name(): d for d in hou.ui.desktops()}
|
||||||
for name in ['2x2', '3x2']:
|
for name in ['2x2', '3x2', 'pie']:
|
||||||
if name in desktops:
|
if name in desktops:
|
||||||
desktops[name].setAsCurrent()
|
desktops[name].setAsCurrent()
|
||||||
break
|
break
|
||||||
|
|||||||
52
houy.py
52
houy.py
@ -8,35 +8,41 @@ import subprocess
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
r = {environ.get('PATH')}
|
r = {environ.get('PATH')}
|
||||||
setup_path = {
|
setup_path = getenv('HFS')
|
||||||
'darwin': '/Applications/Houdini/Houdini17.5.173/Frameworks/Houdini.framework/Versions/Current/Resources',
|
if not setup_path:
|
||||||
'linux': '/opt/hfs17.5.229',
|
# Use static paths
|
||||||
'win32': 'C:\Program Files\Side Effects Software\Houdini 17.5.173'
|
setup = {
|
||||||
}
|
'darwin': '/Applications/Houdini/Houdini17.5.173/Frameworks/Houdini.framework/Versions/Current/Resources',
|
||||||
if platform not in setup_path:
|
'linux': '/opt/hfs17.5.229',
|
||||||
print('Platform `{}` not supported... yet.'.format(platform), file=stderr)
|
'win32': r'C:\Program Files\Side Effects Software\Houdini 17.5.173'
|
||||||
exit(1)
|
}
|
||||||
chdir(setup_path[platform])
|
if platform not in setup.keys():
|
||||||
if '-rs3' in argv:
|
print('Platform `{}` not supported... yet.'.format(platform), file=stderr)
|
||||||
redshift_path = '/opt/redshift3'
|
exit(1)
|
||||||
|
setup_path = setup[platform]
|
||||||
|
chdir(setup_path)
|
||||||
|
|
||||||
|
if platform == 'win32':
|
||||||
|
if '-rs3' in argv:
|
||||||
|
redshift_path = 'C:/ProgramData/Redshift3'
|
||||||
|
else:
|
||||||
|
redshift_path = 'C:/ProgramData/Redshift'
|
||||||
else:
|
else:
|
||||||
redshift_path = '/opt/redshift'
|
if '-rs3' in argv:
|
||||||
|
redshift_path = '/opt/redshift3'
|
||||||
|
else:
|
||||||
|
redshift_path = '/opt/redshift'
|
||||||
|
|
||||||
environ.update({
|
environ.update({
|
||||||
'HOUDINI_NO_SPLASH': '1',
|
'HOUDINI_NO_SPLASH': '1',
|
||||||
'HOUDINI_DSO_ERROR': '2',
|
'HOUDINI_DSO_ERROR': '2',
|
||||||
'PATH': ':'.join(['{}/bin'.format(redshift_path),
|
'PATH': ';'.join(['{}/bin'.format(redshift_path),
|
||||||
environ.get('PATH')]),
|
environ.get('PATH')]),
|
||||||
'HOUDINI_PATH': '{}/redshift4houdini/17.5.173;&'.format(redshift_path),
|
'REDSHIFT_COREDATAPATH': redshift_path,
|
||||||
'REDSHIFT_COREDATAPATH': '{}'.format(redshift_path),
|
'HOUDINI_OCL_DEVICETYPE': 'GPU',
|
||||||
|
'HOUDINI_OCL_DEVICENUMBER': '0',
|
||||||
|
'HOUDINI_PATH': "{}/Plugins/Houdini/17.5.173;&".format(redshift_path),
|
||||||
})
|
})
|
||||||
if platform == 'win32':
|
|
||||||
#call(['runas', '/noprofile', '/user:Administrator', r'"c:\Windows\System32\tscon.exe {} /dest:console"'.format(getenv('SessionName'))], env=environ)
|
|
||||||
environ.update({
|
|
||||||
'PATH': "C:/ProgramData/Redshift/bin;$PATH",
|
|
||||||
'HOUDINI_PATH': "C:/ProgramData/Redshift/Plugins/Houdini/17.5.173;&",
|
|
||||||
'HOUDINI_OCL_DEVICETYPE': 'GPU',
|
|
||||||
'HOUDINI_OCL_DEVICENUMBER': '0',
|
|
||||||
})
|
|
||||||
|
|
||||||
# Initialize env vars.
|
# Initialize env vars.
|
||||||
if platform != 'win32':
|
if platform != 'win32':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user