@throttlekitty I believe the issue you are running into is due to: proc tkPerformCrease() being a local procedure as opposed to a global procedure. On Maya startup and initialization, Maya will parse all scripts located in the environment variable script paths (located via default internal vars and supplemented in your…
https://pastebin.com/V6aqyAy5 This little ditty is for assigning to a hotkey to toggle full/half/off for edge creasing. Seemed like a handy thing to have for quick one offs compared to a full-on crease set workflow or remembering to pre-convert a face selection for the crease tool. It took me a bit to understand that I…
@bitinn I have plenty of .mel scripts with globals that don't need to be sourced, I can't really find the difference. Most the examples I was pulling up are simple linear scripts, or something larger and more complicated. @Klaudio2U I could do that too, I like to keep my hotkeys "clean" for portability or a quick recovery…
I haven't written a MEL before but from autodesk doc it suggests in order for Maya to learn the global in MEL you need to source it. (It also explains why you need to re-source it manually when you change the file) Just a guess. EDIT: This doc explains it in more details.