--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/af2db504-f848-46d4-adda-76645ac382bf%40googlegroups.com.
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.
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+unsub...@googlegroups.com.
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.
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+unsub...@googlegroups.com.
I’ve also hit this issue; as far as I know, there’s no way to query the type of node without first creating it. :( I initially resorted to something along the lines of..
try:
mod = MDGModifier()
mod.createNode("transform") # Fail
except:
mod = MDagModifier()
mod.createNode("transform") # Success
But my particular case was performance sensitive and had many hundreds of calls, so this didn’t sit right. I eventually resorted to calling the appropriate modifier based on the node I was making. If anyone knows otherwise, I would also very much like to know!
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.
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/af2db504-f848-46d4-adda-76645ac382bf%40googlegroups.com.
--
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_m...@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.