Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there, I've created a custom HUD element which displays the Y up or Z up axis from the settings menu. Everything works fine, but if I put this code in my userSetup.mel file Maya 2022 will hang when it tries to load, getting stuck on loading quatNodes.mll. I've tracked the problem down to the -event "idle" command I'm using to update the HUD. What is the trick to make this work because I need to use -event "idle"?
Code here if you want to try for yourself
global proc string m341_extraHUD_upAxis_Display()
{
string $upAxis = `upAxis -q -ax`;
return $upAxis;
}
int $sectionVar = 2;
int $nextFreeBlock = `headsUpDisplay -nextFreeBlock $sectionVar`;
headsUpDisplay -section $sectionVar -block $nextFreeBlock -blockSize "small" -label "Up Axis:" -labelFontSize "small" -command "m341_extraHUD_upAxis_Display()" -event "idle" extraHUD_upAxis_HUDName;
Solved! Go to Solution.