-
Notifications
You must be signed in to change notification settings - Fork 49
Description
Currently I am developing to ensure that everything we have Maya is also available in Houdini.
Issue
Menus cannot be made post launch of the application.
After reading the approach used by Shotgun, see here I tried to do something similar within our current setup. Which is: running a function which writes the xml
file needed to create a new menu or extend on an existing menu. Add the file path to an environment variable ( HOUDINI_MENU_PATH
) for Houdini to read out.
Houdini does not check any files after the application has started.
Conclusion:
The file and the environment variable need to be create / updated prior to the launch of the application.
Note:
Currenlty I have an alternative but static menu which can be copied or set through the .toml
Proposal:
Create a logic which allows the pipeline to set and/or create important items for the application.
Dummy code:
# This case is aimed for Houdini were we use `123.py` to trigger the install at launch
import os
from avalon import pipeline, houdini
if os.environ.get("PRE_APP_INIT", False):
houdini.pre_install()
<host>.install()
The logic to control something like this can be altered but assuming that not all applications need it, it might be better to use an environment variable.
Any other ideas how to tackle such things?