Obviously I tried to create a dg node with DAGModifier but it throws error ("Invalid node type"). Which makes sense to me since maya api it's really low level stuff so it tries to create the dag node part but the type doesn't allow it.
2019. augusztus 2., péntek 7:21:16 UTC-7 időpontban Ravi Jagannadhan a következőt írta: > > MDGModifier should create DAG nodes right? A DAG node is a DG node, but > not all DG nodes are DAG nodes. > > Ravi > — > "There are no dumb questions" - Carl Sagan. > > On Aug 1, 2019, at 22:15, David Lantos <dlan...@gmail.com <javascript:>> > wrote: > > Hi guys, > > I'm creating a "createNode(nodeType)" wrapper around maya api 2.0 > > How can I decide based on node type which one I need to use, MDGModifier > or MDAGModifier? > > If I use MDAGModifier to create DG node it throws error. I didn't find > function that tells me based on type is it DG type or DAG type? > > David > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/af2db504-f848-46d4-adda-76645ac382bf%40googlegroups.com > > <https://groups.google.com/d/msgid/python_inside_maya/af2db504-f848-46d4-adda-76645ac382bf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/bd89db5f-43e2-405e-ba4a-699462f8438e%40googlegroups.com.