My meta node is just a group node that I add connections to. My toolset
is an extensable auto-rigging framework, and I'm building it out as a
series of connectable blocks. I like having named access to the
relevant nodes from each block to access the necessary nodes for
connection of the blocks at later stages in the process. Another
eventual benefit is that a rigger can work backwards on a rig that was
built with the framework--i.e. find a rigged block and revert to just
joints (and by joints I mean a custom joint system that handles
orientations internally), make adjustments, switch the rig module that
controls that block, then re-apply. That's all possible through this
meta-network. Sets don't (to my knowledge) have that level of
functionality. The main purpose of the Meta node is that someone using
the toolkit can click on ANY object in a scene, and as long as it's
hooked up to a metanode the system can identify all of the needed nodes
to interact with. I don't need search by name specifically at that
point, that's just something for while the network builds.
On 3/23/2014 2:25 AM, Marcus Ottosson wrote:
Sounds right. I've never used much of the Maya API myself, but it
sounds like it lets you keep an absolute reference to the nodes you
create which seems like a good way to go if all of your node creation
happens within the same script.
The issue is what happens once your script finishes, when the absolute
reference also vanishes into oblivion along with the absolute path.
But, as you said, you can exploit the fact that nodes can stay
connected to other nodes which would give them a common starting point
from which to start looking for names.
However I'm curious as to why you choose to create this Meta node (is
that a custom node-type?) or rely on the message slot of nodes (if I
understood you correctly), which is already used by other nodes
(although sporadically) when Maya already makes use of objectSet
<http://download.autodesk.com/global/docs/maya2013/en_us/Nodes/objectSet.html>,
aka "set", for this purpose.
Maybe I'm not in the loop on exactly it is what you're trying to do
though; is this still a question on finding objects in a scene? By name?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/532F42AF.5030004%40gmail.com.
For more options, visit https://groups.google.com/d/optout.