Code: [Select] for(%i = 0; %i < DatablockGroup.getCount(); %i++) { %obj = DatablockGroup.getObject(%i); if(%obj.getClassName() $= "fxDTSBrickData" && %obj.uiName $= %name) { //do stuff } }This is one way. You could possibly do it through brickgroups, not sure though.
for(%i = 0; %i < DatablockGroup.getCount(); %i++) { %obj = DatablockGroup.getObject(%i); if(%obj.getClassName() $= "fxDTSBrickData" && %obj.uiName $= %name) { //do stuff } }
I guess you could search through the datablocks and look for a ui name that matches the one you have.
for(%i = 0; %i < DatablockGroup.getCount(); %i++) { %obj = DatablockGroup.getObject(%i); if(%obj.getClassName() $= "fxDTSBrick" && %obj.uiName $= %name) { //do stuff } }
You won't want to loop through datablocks consistently though; if you need to do it more than once you should index them in an array.
Code: [Select] for(%i = 0; %i < DatablockGroup.getCount(); %i++) { %obj = DatablockGroup.getObject(%i); if(%obj.getClassName() $= "fxDTSBrick" && %obj.uiName $= %name) { //do stuff } }This is one way.