Trees | Indices | Help |
---|
|
This class initialize an AETemplate for a given nodetype dinamycally. Basically this avoid the need of having an AEnodetypTemplate.mel file. When the class is created, it sources a piece of mel code that register a global proc AEnodetypeTemplate for the given nodetype. This global proc just calls the static method template of this class, where the code for the template really is, in python. Hopefully, in future versions of maya we will be able to use python directly for AETemplates.
|
|||
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
checks for the existence of a layout with the given layoutName, of type "type" and deletes it, if it exists. Used to delete the framelayout of our template. |
checks for the existence of a layout with the given layoutName, of type "type" and deletes it, if it exists. Used to delete the framelayout of our template. |
This is the method called by the dinamic AETemplate mel. Basically, it sets up a scroll layout, adds an extra attributes layout and suppress all attributes found in the node. The real important piece of code is the callCustom template that calls the static method customUI of this class, at runtime. Unfortunately, AGAIN we need to rely on a small portion of mel code to trigger the call for our customUI method, since a callCustom only calls mel global procs. |
This method is called at runtime, and its responsible to create the ui for every type of node we have. It calls genericHeader and parameters methods to initialize the generic header all slum shaders have, and the parameters for each node type, based on the returned data from the parameter of a slum class shader. |
This is the method that creates the UI for our attributes. The UI is based in the data returned from the parameters method of the slum class associated with the node. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Oct 28 16:21:54 2010 | http://epydoc.sourceforge.net |