Notifications
                
            
                Clear all
    
            
        [Closed] Can someone sort me out with a snippet?
Jan 26, 2015 2:31 pm
                      I need a little bit of code that selects each layer in a max file and selects everything on that layer and then unlinks selection and then groups the selection. I can do the second half its the first half i cant figure out.
Can anyone help me?
Thanks
Jack
                             1 Reply                        
                    Jan 26, 2015 2:31 pm
                      Does this work for you?
for j = 0 to LayerManager.count-1 do
 (
 	layer = layerManager.getLayer j
 	layer.current = true
 	layer.nodes &nodes
 	nodes.parent = ()
 	group nodes name:("group_"+layer.name)
 )