I have created a custom panel using MEL, which has some special controls I use when animating lip-sync. I'd like to be able to call up this panel whenever I want. I have created a layout button which creates a three-panel layout consisting of the Graph Editor, a view panel, and my scripted Lip Sync Panel.
However, by default, Maya doesn't know what this panel is when the layout button asks for it by name. If I run Maya, and click on my layout button, I get this error:
// Error: Object not found: syncPanelType //
I can explain to Maya what I'm talking about by using this command:
Obviously, I could make this a shelf button or something, but there has to be a way to define a panel type for startup, doesn't there?
I have to confess that part of the problem here is that I created this workflow some time ago, so I don't really remember what a lot of the steps were. Sloppy!! I'm just hoping someone else will have an answer at their fingertips... I promise, this time I'll document properly!
to create it on startup you can create a userSetup.mel file in your scripts directory (if you don't already have one) and place that scriptedPanel command into the userSetup.mel file. Maya will read it and run all commands at startup.