Message 1 of 11
Mel script, correct way to call a built in procedure into a GUI?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey I have a custom mel GUI that calls $myVariable = texGetShells(); which is procedure in scripts/others from the Maya default folder. I get an error the first time I try to run my button that calls it, but if I launch the GUI a second time then everything works fine? What is the correct way to call an existing Maya procedure in a GUI? I hacked it by copying the whole procedure into my GUI and making it a global proc, is there something cleaner?