ynput / OpenPype

OpenPype has been surpassed by AYON and is now read only.
https://ayon.ynput.io
MIT License
286 stars 129 forks source link

injecting environments to shell #4490

Open m-u-r-p-h-y opened 1 year ago

m-u-r-p-h-y commented 1 year ago

Is your feature request related to a problem? Please describe.

While testing it would be great to have a possibility to spawn shell/command line with Ayon/OP environments set

For example, when testing something in Maya from command line I need to have all tools/plugins from the settings set to load Arnold/Vray/Redshift/USD from my central software repo

Describe the solution you'd like

Ideally, the same way we have Python Console, we could have Shell/Cmd/Powershell Console with all environments set

or

having an option to run the ayon/op console with option to set envs (similar way we extract them to json)

[cuID:OP-4985]

BigRoy commented 1 year ago

I actually have this. :)

It's this launcher action: https://github.com/BigRoy/OpenPype/blob/colorbleed/openpype/modules/colorbleed/launcher_actions/debug_shell.py

BigRoy commented 1 year ago

@m-u-r-p-h-y is my example close to what you are looking for? We use it all the time. We could expose it in a default module as launcher action if needed?

m-u-r-p-h-y commented 1 year ago

yes. It looks great!