AL_USDMaya  0.16.6
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ProxyShapePostLoadProcess.h
1 #pragma once
2 #include "AL/usdmaya/fileio/ImportParams.h"
3 
4 #include "maya/MPxCommand.h"
5 
6 #include <pxr/usd/usd/common.h>
7 
8 namespace AL {
9 namespace usdmaya {
10 namespace cmds {
11 
12 //----------------------------------------------------------------------------------------------------------------------
28 //----------------------------------------------------------------------------------------------------------------------
30 {
31 public:
32 
34  typedef std::vector<std::pair<MObject, UsdPrim> > MObjectToPrim;
35 
40  static MStatus initialise(nodes::ProxyShape* shape);
41 
49  nodes::ProxyShape* shape,
50  const std::vector<UsdPrim>& schemaPrims,
51  const MDagPath& proxyTransformPath);
52 
58  static void createSchemaPrims(
59  nodes::SchemaNodeRefDB* schemaNodeDB,
60  const MObjectToPrim& objsToCreate);
61 
66  static void connectSchemaPrims(
67  nodes::SchemaNodeRefDB* schemaNodeDB,
68  const MObjectToPrim& objsToCreate);
69 
70 private:
71  static fileio::ImporterParams m_params;
72 };
73 
74 //----------------------------------------------------------------------------------------------------------------------
75 } // cmds
76 } // usdmaya
77 } // AL
78 //----------------------------------------------------------------------------------------------------------------------
static MStatus initialise(nodes::ProxyShape *shape)
called after a proxy shape has been created. Traverses the prim hierarchy and looks to see whether an...
static void createSchemaPrims(nodes::SchemaNodeRefDB *schemaNodeDB, const MObjectToPrim &objsToCreate)
After transforms exist to parent the custom plugin-prim types (i.e. after a call to createTranformCha...
A custom proxy shape node that attaches itself to a USD file, and then renders it. The stage is held internally as a member variable, and it will be composed based on a change to the "filePath" attribute.
Definition: ProxyShape.h:33
static MObjectToPrim createTranformChainsForSchemaPrims(nodes::ProxyShape *shape, const std::vector< UsdPrim > &schemaPrims, const MDagPath &proxyTransformPath)
given a specific proxy shape, and a collection of UsdPrims that represent custom DagNode types...
parameters for the importer
Definition: ImportParams.h:18
static void connectSchemaPrims(nodes::SchemaNodeRefDB *schemaNodeDB, const MObjectToPrim &objsToCreate)
called once all plugin nodes have been created, and will request that each plugin translator performs...
The proxy shape node needs to store a mapping of all the schema nodes it has brought into the Maya sc...
Definition: VariantDB.h:53
std::vector< std::pair< MObject, UsdPrim > > MObjectToPrim
a mapping from an MObject to a UsdPrim
Definition: ProxyShapePostLoadProcess.h:34
When importing a new usd stage into an AL::usdmaya::nodes::ProxyShape, there are a selection of post ...
Definition: ProxyShapePostLoadProcess.h:29