Ah, answered my own question - if you have the creator you register with
MFnPlugin::registerNode return a nullptr, then it will block creation of
the node.

It will print a message saying no such dependency node exists, which is
less than optimal, but it's the best solution I've found...

On Wed, Aug 9, 2017 at 5:20 PM Paul Molodowitch <elron...@gmail.com> wrote:

> I'm making my own node class, and I'm looking for a way to block the
> creation of the node in certain circumstances. Does anyone know of a way to
> accomplish this, either through one of the MPxNode methods, or via some
> more generic maya callback?  (Well, other than by crashing the program -
> I'd like to make maya print an error or something similar.)

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to