Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add a simple empty DG node type for storing data

Add a simple empty DG node type for storing data

It would be useful to have a basic DG node type with no attributes or behavior.

 

Scripts could use this to store arbitrary data, for things like settings that should be saved to the scene.

 

Another use came up recently here, where you want an empty node to just hold a rig attribute: https://forums.autodesk.com/t5/maya-programming/does-a-math-round-or-floor-node-exist-in-maya/m-p/89...

 

Using existing nodes isn't great, because they all have existing semantics and attributes.  Using a dummy multiplyDivide is confusing, since it has nothing to do with the multiplyDivide node.  Empty transforms aren't appropriate either (clutters the scene with DAG nodes), and they also have a ton of unneeded attributes.  https://forum.highend3d.com/t/creating-a-empty-node/6428 suggests using an unknown node, which I think is a bad idea as well, since the existence of unknown nodes in a scene indicates that there are missing plugins.

 

I've used a custom node for this, but usually adding a plugin dependency for this isn't wanted (that's worse than repurposing an existing node).

 

A simple node type named "node" with no extra attributes would be a simple solution.  It might have a single "nodeType" string attribute, for scripts to identify their node to find it later (usually I add an attribute for this, but it would standardize identifying the nodes, could be used by the node editor for display, etc).

 

 

6 Comments
info
Enthusiast

Since Autodesk is unlikely to add this, I'd suggest the 'network' node to you. It's a node that's only used for connecting parts of a node network together and does nothing in and of itself. I use it to store data and also to group nodes together.

JakobJK
Explorer

I am in a situation where this would be super useful. Definitely upvoting this!

absoluteKelvin
Collaborator

thanks info for the suggestion. I was looking for a replacement for the unknown node. because unknown node causes issue with saving.

g2m.agent
Collaborator

I found a plugin that might help you.

https://github.com/zewt/zMayaTools

  • zNode: An empty DG node for storing custom data.
zewt
Collaborator

I'll give zewt's plugin a try 🙂

 

info
Enthusiast

brilliant  🤣

 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea