Skip to content

Commit 052577d

Browse files
committed
Fix dsolib load order when installing via the update manager
1 parent 32190f1 commit 052577d

3 files changed

Lines changed: 21 additions & 18 deletions

File tree

docs/src/installation/automatic_install.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ run_dcc()
3535

3636
![Houdini Python Source editor](./media/HoudiniPythonSourceEditor.jpg)
3737

38+
We also recommend turning "Set Asset Resolver Context From LOP Node Parameters" off, if you want to drive the context via the /stage preferences.
39+
Leaving it on will require you to use a "Configure Stage" LOP node.
40+
41+
![Houdini Asset Resolver Context Preferences editor](./media/HoudiniAssetResolverContextPreferences.jpg)
42+
3843
## Maya
3944
In Maya we simply need to open the "Script Editor" and run the following code to get access to the update manager. You should preferably do this in a clean Maya session as a safety measure.
4045

24.4 KB
Loading

tools/update_manager.py

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,16 @@ def install_release(
621621
with open(launch_file_path, "w") as launch_file:
622622
lines = []
623623
lines.append("#!/bin/bash")
624-
# Environment
625-
lines.append("# Setup environment")
626-
# UpdateManager
624+
# Source App
625+
if product_name == "houdini":
626+
lines.append("# Setup Houdini")
627+
lines.append(
628+
"pushd '{}' && source houdini_setup && popd".format(
629+
os.environ["HFS"]
630+
)
631+
)
632+
# Source Resolver
633+
lines.append("# Setup Resolver")
627634
lines.append(
628635
"export {}={}".format(ENV_USD_ASSET_RESOLVER, directory_path)
629636
)
@@ -636,21 +643,12 @@ def install_release(
636643
env_name=env_name, env_value=env_value, sep=os.pathsep
637644
)
638645
)
646+
# Launch App
647+
lines.append("# Launch {app}".format(app=product_name.title()))
639648
if product_name == "houdini":
640-
# App
641-
lines.append("# Launch Houdini")
642-
lines.append(
643-
"pushd '{}' && source houdini_setup && popd".format(
644-
os.environ["HFS"]
645-
)
646-
)
647-
# Command
648649
lines.append('houdini -foreground "$@"')
649650
launch_file.writelines(line + "\n" for line in lines)
650651
elif product_name == "maya":
651-
# App
652-
lines.append("# Launch Maya")
653-
# Command
654652
lines.append(
655653
'"{}" "$@"'.format(
656654
os.path.join(os.environ["MAYA_LOCATION"], "bin", "maya")
@@ -664,9 +662,8 @@ def install_release(
664662
launch_file_path = os.path.join(directory_path, "launch.bat")
665663
with open(launch_file_path, "w") as launch_file:
666664
lines = []
667-
# Environment
668-
lines.append("REM Setup environment")
669-
# UpdateManager
665+
# Source Resolver
666+
lines.append("REM Setup Resolver")
670667
lines.append(
671668
"set {}={}".format(ENV_USD_ASSET_RESOLVER, directory_path)
672669
)
@@ -679,7 +676,8 @@ def install_release(
679676
env_name=env_name, env_value=env_value, sep=os.pathsep
680677
)
681678
)
682-
# App & command
679+
# Launch App
680+
lines.append("REM Launch {app}".format(app=product_name.title()))
683681
if product_name == "houdini":
684682
lines.append("REM Launch Houdini")
685683
lines.append(

0 commit comments

Comments
 (0)