Exporting a custom DG (not DAG) node. #3140
Unanswered
jjzanin-SMS
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It will traverse the DAG, but translate any DG connections, but if you want to translate something not connected to the DAG, you may either need to connect it or handle the translation in a chaser... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is it possible to export a custom DG (not DAG) node inheriting from UsdMayaPrimWriter? It looks like UsdMaya_WriteJob::_BeginWriting only traverses the DAG, so nodes that aren't DAG nodes are skipped. The comment for UsdMayaPrimWriter says it writes prims for DG nodes too:
/// Base class for all built-in and user-defined prim writers. Translates Maya
/// node data into USD prim(s).
///
/// Note that this class can be used to write USD prims for both DG and DAG
/// Maya nodes. For DAG nodes, an MDagPath is required to uniquely identify
/// instances in the DAG, so the writer should be created using an
/// MFnDagNode (or one of its derived classes) that was constructed using an
/// MDagPath, not an MObject.
Thanks!
Jeremiah
Beta Was this translation helpful? Give feedback.
All reactions