Hi,
That's possible via Maxscript in a following way:
All objects handled in such group can be selected and stored as the "items" variable for example by:
items = for i in Objects where (isGroupMember i == true) collect i;To add it to existing Forest object, it's necessary to define
.count vales for several Forest properties. You can find list of these in following
ObjectToForest script.
Setting new counts you can proceed by:
existingItemsCount = $.cobjlist.count;
$.cobjlist.count = $.cobjlist.count + items.count;
...
$.problist.count = $.problist.count + items.count;This needs to done for all of these values
($.matlist, $.namelist, $.coloridlist ... $.problist).
Finally, you can add & define these objects by:
for i = 1 to items.count do
(
$.cobjlist[existingItemsCount + i] = items;
...
$.problist[existingItemsCount + i] = 100;
);
Again, this have to be done for all listed properties
($.matlist, $.namelist, $.coloridlist ... $.problist).
Hope that helps.
Best regards,