Feedback

What's your question?

By: [ Admin ] Asked from India

How to unload a plugin that has some MPxData

I have a maya plugin that contains a node and an MPxData derived object that is a member of the node. I'd like to unload the plugin, but if a node has been created already it won't unload - even after flushUndo or after making a new scene.

Any ideas?

Add comment viewed 235 times Latest activity 10 months ago

or Cancel

1 answer

  • 1

mr grumpy [ Editor ]

That's weird. What I usually do (out of pessimism) is register the data first, then the node, then do the deregister calls in the reverse order, node then data. I've never had the problem you describe, but then I never done an experiment to see what effect changing the ordering has.

NN comments
julian
-

yeah – I had that order. There are 2 nodes that use the data and they were both registered after the data and deregistered before. I thought it may have been because one of the nodes was a shader.

or Cancel