ynput / ayon-maya

Maya addon for AYON
Apache License 2.0
6 stars 9 forks source link

Settings: Custom Tools Menu Definition allow multi-line command #153

Open BigRoy opened 1 month ago

BigRoy commented 1 month ago

Is there an existing issue for this?

Please describe the feature you have in mind and explain what the current shortcomings are?

When you just want to quickly add a multi-line Python script to the menu it's non trivial because currently it'd only support a single line of code like import my_script; my_script.run() but sometimes you just want to quickly throw in some script there without worrying about managing your own python libs to run from.

How would you imagine the implementation of the feature?

Make the "command" field a multi-line text field.

Are there any labels you wish to add?

Describe alternatives you've considered:

No response

Additional context:

Related to discussion on discord.