I'm still new to max script and I'm writing this function to select all nodes in layers that matches a given prefix name.
so far I'm able to find the right layers, I just don't know how to select objects in these layer.
here's my code :
fn selectLayerPrefix str = ( local objArray = #() for i= 1 to (LayerManager.count-1) where ( matchpattern (LayerManager.getLayer i).name pattern:(str+"*") ) do ( append objArray (LayerManager.getLayer i).nodes ) select objArray ) selectLayerPrefix "LGT_"
so my array gives me: objArray: #(nodes(), nodes()), I just what ton know how to select them.