In Maya there's an option to draw thicker lines in the viewport. As Im using a hi res display it's much better for me to have the thicker lines however Maya forgets this settings. I have this MEL code: string $visPanels[] = `getPanel -vis`; modelEditor -e -lineWidth 2 $visPanels; But can't seem to find a way to exceute it…
Yep, that doesn't work in userSetup because at the point when you query for panels there aren't any created yet. For this sort of thing if you want to set up some script to be executed once Maya is finished starting up then you can use an -idleEvent scriptjob instead. Try putting this in your userSetup.mel:scriptJob…