flaiver
11-09-2006, 06:46 PM
Hallo,
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:
http://www.alias.com/glb/eng/support/knowledgebase/solution_details.jsp?type=Technical%20Note&family=Maya&itemId=3297+
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
flaiver
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:
http://www.alias.com/glb/eng/support/knowledgebase/solution_details.jsp?type=Technical%20Note&family=Maya&itemId=3297+
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
flaiver
