thanks Chad! will try that. do you think I should still use buildDataAttribute? I think this wouldn`t make sense anymore...
Jakub On Oct 28, 3:18 am, Chad Vernon <[email protected]> wrote: > MPlug.elementByLogicalIndex(n) will automatically create a plug at that > index if one doesn't exist there. So your command just needs to find the > next available index. MPlug.getExistingArrayAttributeIndices will give you > the current indices. > > -Chad > > On Tue, Oct 27, 2009 at 7:03 PM, Jakub Krompolc > <[email protected]>wrote: > > > > > I`m trying to use arrayDataBuilder in the command, but it seems I > > can`t do that without dataBlock. And as documentation says "The data > > block is only valid during the compute method of the depend node", it > > looks like you can`t generate array attributes using command itself, > > even the node specified... > > I have made a trigger system (using int value on the node that command > > changes) to make array in "deform time" of node and this works, but > > there`s no clean way described for this. skin algorithm example > > (Writing Creature Deformers DVD) and weighstNode.cpp both don`t show > > how you technique how user can add his new array. Say, if you`re > > making a blendShape with multiple targets. > > Anyone knows more elegant way? --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
