[Maya-Python] (Maya Python) Is there a way to run a command from a menuItem inside a objectMenu

2022-12-20 Thread Kat Patterson
I am in need of some help, not sure how active this forum is anymore. I am looking to see if there is any way to make a optionMenu run a command for each option in the drop down menu? I am pretty new to maya python so I do not know very much, but google is less helpful than finding everything

Re: [Maya-Python] Re: (Maya Python) Is there a way to run a command from a menuItem inside a objectMenu

2022-12-20 Thread Kat Patterson
actually shows you how to use the > callback, which will receive the value of the menuItem when it is changed > in the optionMenu. > > Justin > > > On Wed, Dec 21, 2022 at 1:11 PM Kat Patterson wrote: > >> https://pastebin.com/SfLxjFmG >> >> On Tuesday, Decembe

Re: [Maya-Python] Re: (Maya Python) Is there a way to run a command from a menuItem inside a objectMenu

2022-12-20 Thread Kat Patterson
, December 20, 2022 at 5:25:09 PM UTC-7 justin...@gmail.com wrote: > On Wed, Dec 21, 2022 at 1:19 PM Kat Patterson wrote: > >> def printNewMenuItem( item ): >> print item >> >> This code alone ALWAYS produces a invalid syntax on my end, so I am >> unable

Re: [Maya-Python] Re: (Maya Python) Is there a way to run a command from a menuItem inside a objectMenu

2022-12-20 Thread Kat Patterson
change it when i press the option, it changes if i press the create button? It is alright if there is not an option like this, I am very greatful for you helping me ♥ On Tuesday, December 20, 2022 at 5:51:01 PM UTC-7 justin...@gmail.com wrote: > On Wed, Dec 21, 2022 at 1:42 PM Kat Patter

[Maya-Python] Re: (Maya Python) Is there a way to run a command from a menuItem inside a objectMenu

2022-12-20 Thread Kat Patterson
https://pastebin.com/SfLxjFmG On Tuesday, December 20, 2022 at 5:09:19 PM UTC-7 Kat Patterson wrote: > I am in need of some help, not sure how active this forum is anymore. > > I am looking to see if there is any way to make a optionMenu run a command > for each option in the drop