dbsmith
11-27-2006, 12:31 AM
Hey all,
Got a plugin which works fine and all, loads my custom node and attaches a coupla meshes to it blah blah blah.
But when I give it my own AETemplate mel script, it hides heaps of other unrelated icons in maya, particularly the icons at the top of the hypershade panel (eg show input/output connections - no button there anymore!)
The template works properly for my node...
Anyone had this kinda behaviour before?
Heres my AE template script, which maya just loads up automatically from my My Docs/maya/7.0/scripts folder:
global proc AEMyNodeTemplate ( string $nodeName )
{
AEswatchDisplay $nodeName;
editorTemplate -beginScrollLayout;
editorTemplate -beginLayout "Attributes" -collapse 0;
AEfieldCommon $nodeName;
editorTemplate -addControl "View_Detail";
editorTemplate -addControl "Render_Detail";
editorTemplate -addControl "Camera_Ratio";
editorTemplate -addControl "At_Origin";
editorTemplate -callCustom init_TFW refresh_TFW;
//editorTemplate -callCustom init_Cam refresh_Cam;
editorTemplate -endLayout;
AEdependNodeTemplate $nodeName;
editorTemplate -addExtraControls;
editorTemplate -endScrollLayout;
}
Got a plugin which works fine and all, loads my custom node and attaches a coupla meshes to it blah blah blah.
But when I give it my own AETemplate mel script, it hides heaps of other unrelated icons in maya, particularly the icons at the top of the hypershade panel (eg show input/output connections - no button there anymore!)
The template works properly for my node...
Anyone had this kinda behaviour before?
Heres my AE template script, which maya just loads up automatically from my My Docs/maya/7.0/scripts folder:
global proc AEMyNodeTemplate ( string $nodeName )
{
AEswatchDisplay $nodeName;
editorTemplate -beginScrollLayout;
editorTemplate -beginLayout "Attributes" -collapse 0;
AEfieldCommon $nodeName;
editorTemplate -addControl "View_Detail";
editorTemplate -addControl "Render_Detail";
editorTemplate -addControl "Camera_Ratio";
editorTemplate -addControl "At_Origin";
editorTemplate -callCustom init_TFW refresh_TFW;
//editorTemplate -callCustom init_Cam refresh_Cam;
editorTemplate -endLayout;
AEdependNodeTemplate $nodeName;
editorTemplate -addExtraControls;
editorTemplate -endScrollLayout;
}
