XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : clear ArrayAttribute in Node trough API MPxCommand

11-09-2006, 07:46 PM

i've written a custom node and a corresponding MPxCommand, witch can create spezial arrayattributes in this node. Unfortunately, i have to write a "undo" function where i have to clear the hole data array. But there is no function in the MPlug or MFnDependencyNode class, where i can delete a special element in this array. I think, the probleme is very close to this:


But the removeMultiInstance doesn't work in my case, using MGlobal::executeCommand, cause just the first executeCommand function will be evaluate so just one element can be deleleted, but i want clear the hole array.

Has anybody found a workaround for my problem.

Thanks for all the help


CGTalk Moderation
11-09-2006, 07:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.