clear ArrayAttribute in Node trough API MPxCommand

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  11 November 2006
clear ArrayAttribute in Node trough API MPxCommand


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

  11 November 2006
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 04:58 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.