Coding wise: With MDGModifier you can't create DAG node since it's a base class of MDAGModifier. With higher level you might can create lower level stuff.
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/2f72eec9-c79a-4dd1-ae11-34d4767d1bc7%40googlegroups.com.