I`m not sure I have enough info to give specific advice, I presume the node may not exist that you want to get the typeId for? If MDGModifier does not do the job how about just creating one and then use MGlobal::deleteNode() to get rid of it?
Just a thought...

At 09:56 PM 9/22/2010, you wrote:

On Sep 22, 2010, at 9:39 PM, Jan Berger wrote:


there is MFnDependencyNode::typeId()
to get it for a specific node type I guess one would need to use the create function beforehand

yes, it's not a static/class method so the MFnDependencyNode class needs to be instantiated to use that method... meaning you need an existing node. i've done some very nasty things using dg modifiers to create "ghosedt" nodes that do not yet exist to find out their type, the revert the dgmod, but i'd rather not have to do that.

-chad





At 08:26 PM 9/22/2010, you wrote:
i've searched for this before without avail, but it's biting me again in a different context, so i thought i'd check:

is there a way to get the typeId of a node without having an existing instance of the node?

i would expect a static method on MFnDependencyNode, like the following:

        MFnDependencyNode.getTypeId('transform')

but i can't find anything....

-chad


--
http://groups.google.com/group/python_inside_maya

Jan Berger
<mailto:[email protected]>[email protected] :: www.janberger.de

--
<http://groups.google.com/group/python_inside_maya>http://groups.google.com/group/python_inside_maya

--
http://groups.google.com/group/python_inside_maya

Jan Berger
[email protected] :: www.janberger.de
--
http://groups.google.com/group/python_inside_maya

Reply via email to