Skip to content
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

Merged

Conversation

iLLiCiTiT
Copy link
Member

Changelog Description

It is possible to launch application using cli arguments.

Additional info

Simplest possible approach to launch application using cli.

Testing notes:

  1. Run ./ayon addon applications launch --app maya/2024 --project YourProject --folder /Some/folder/path --task Modeling.
  2. Application should launch.

@ynbot ynbot added type: feature Adding something new and exciting to the product size/XS labels Apr 17, 2024
iLLiCiTiT and others added 4 commits April 17, 2024 11:27
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
@MustafaJafar MustafaJafar requested a review from BigRoy May 1, 2024 07:37
Copy link
Contributor

@MustafaJafar MustafaJafar left a 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?

Copy link
Collaborator

@BigRoy BigRoy left a 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.

@iLLiCiTiT iLLiCiTiT merged commit 983bc22 into develop May 2, 2024
4 of 5 checks passed
@iLLiCiTiT iLLiCiTiT deleted the feature/AY-1261_Running-DCC-from-CLI-in-Ayon-context branch May 2, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: feature Adding something new and exciting to the product
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants