-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applications: Add launch command for applications addon #422
Applications: Add launch command for applications addon #422
Conversation
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
…yon-context # Conflicts: # server_addon/applications/package.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is cool!
It works on my side.. I used it to launch maya and houdini.
Also, --help
works nicely.
For reference, Here's an example of how it looks like in terminal on my side.
PS E:\Ynput\ayon-launcher> tools/ayon_console.bat --use-dev addon applications launch --app houdini/19-5-805 --project Robo --folder
"/Assets/Character/warrior_robo" --task cfx
E:\Ynput\ayon-launcher>goto comment
E:\Ynput\ayon-launcher>cd "E:\Ynput\ayon-launcher\tools\\.."
E:\Ynput\ayon-launcher>.poetry\bin\poetry.exe run python start.py --use-dev addon applications launch --app houdini/19-5-805 --project Robo --folder /Assets/Character/warrior_robo --task cfx
>>> Connected to AYON server http://xxx.xxx.x.x:5000
*** WRN: >>> { AddonsLoader }: [ Addon simple_empty 0.0.1 has no content to import ]
*** WRN: >>> { AddonsLoader }: [ Addon simple_frontend 0.0.1 has no content to import ]
*** AYON [1.0.3-dev.1] ------------------------------------------------------------------------------------------------------------
>>> Using AYON from [ E:\Ynput\ayon-launcher ]
... AYON variant: [ dev (AYON-Dev) ]
... AYON bundle: [ AYON-Dev ]
>>> loading environments ...
- global AYON ...
- for addons ...
>>> [ Setting OCIO environment to config path: C:\Users\Mustafa Taher\AppData\Local\Ynput\AYON\addons\ayon_ocio_1.0.0\ayon_ocio\configs\OpenColorIOConfigs\aces_1.2\config.ocio ]
>>> [ Setting OCIO_ACTIVE_DISPLAYS environment to: ACES ]
>>> [ Setting OCIO_ACTIVE_VIEWS environment to: sRGB ]
>>> [ Launching "houdini/19-5-805" with args (2): ['C:\\Program Files\\Side Effects Software\\Houdini 19.5.805\\bin\\houdinifx.exe', '\\\\storage\\work\\ayon_projects\\Robo\\Assets\\Character\\warrior_robo\\work\\cfx\\robo_warrior_robo_cfx_v228.hip'] ]
Now, the next question (irrelevant to this PR):
How to help pipeline admins to get/generate task commands?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Changelog Description
It is possible to launch application using cli arguments.
Additional info
Simplest possible approach to launch application using cli.
Testing notes:
./ayon addon applications launch --app maya/2024 --project YourProject --folder /Some/folder/path --task Modeling
.