Thank you Panupat! really appreciate your coming to the help, but I added the flags but it still crash :'( I am running the script in Maya LT by the way, because some in the team is using Maya LT and my code needs to be in Mel unfortunately. I updated the gist…
Hi, I need some help on a mel script, I hope someone can take a bit of time to look at my code and tell me why it doesn't work and how to fix it. I suspect it could even be a Maya bug... What I am trying to do it create buttons dynamically on the fly using a '+' button. The '+' button will create a new button when I click…
Sorry got a lil bit busy and replying late... @Panupat, I think the line added to windowsPrefs.mel is because I got a line that remove the window pref everytime it script run, I think that's why it's get added every time if (`windowPref -exists dynamic_buttons_test_UI`) windowPref -r dynamic_buttons_test_UI; @tsungyuw, I…