Listing nodes by type using wildcards

17 views
Skip to first unread message

joiec...@gmail.com

unread,
Jan 9, 2025, 8:31:26 AMJan 9
to maya_he3d
Hi there,
I need to list all Arnold nodes in the scene, but using "ai*" doesn't work.
But if I use the complete name, like "aiStandard" it works correctly.
Is there any way to use wildcards when listing nodes by node type?
thanks in advance!

Ron Viers

unread,
Jan 9, 2025, 8:48:49 AMJan 9
to maya...@googlegroups.com
i think you can use 'render setup' create a layer and use wildcards with 'custom' node types

--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/maya_he3d/e3fb9751-6e6a-4476-856d-07f40bf305a8n%40googlegroups.com.

Carlos Rico Adega

unread,
Jan 9, 2025, 8:58:05 AMJan 9
to maya...@googlegroups.com

You can use this snippet to get all node types a plugin registers:

from maya import cmds

# set plugin name
plugin_name = 'mtoa'

# get all node types registered by the plugin
plugin_nodes = cmds.pluginInfo(plugin_name, q=True, dependNode=True)

# list all plugin node types
plugin_nodes_in_scene = cmds.ls(type=plugin_nodes)



--
Carlos Rico Adega
-------------------------------------
LinkedIn
carlos....@gmail.com

joiec...@gmail.com

unread,
Jan 10, 2025, 2:19:06 AMJan 10
to maya_he3d
Thank you very much, that works perfect!
Reply all
Reply to author
Forward
0 new messages