Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Maxforums.org Members Gallery
(516 replies)
  SON OF POST YOURSELF
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Looking for a snippet or help with layers
show user profile  jpedleham
Hi, Im trying to piece together a small bit of code just to run through each layer and group everything on that layer renaming the group to the layer name.

I have this at the moment but nothing is being selected for some reason
Any ideas?

[code]
for i = 0 to layerManager.count-1 do
(
ilayer = layerManager.getLayer i
layerName = ilayer.name
(layerManager.getLayerFromName ilayer.name).select true
group selection name:layername
)


[/code]

Thanks
Jack
read 388 times
5/14/2015 12:53:26 PM (last edit: 5/14/2015 12:53:26 PM)
show user profile  Garp
Questions:
1- do you want to group the objects in the default layer as well?
2- do you want the groups (and their objects) moved to the default layer?
3- if yes to 2, do you want the empty layers to be deleted?


edit: If 'yes' to everything,




read 374 times
5/14/2015 7:45:50 PM (last edit: 5/14/2015 8:13:59 PM)
show user profile  jpedleham
Garp, Youre a legend. Thanks that worked perfectly!
It completely sorts out the category layers revit buildings are in when brought into max! :D
Thanks again!
read 364 times
5/14/2015 8:52:01 PM (last edit: 5/14/2015 8:52:01 PM)
show user profile  Garp
:)




read 361 times
5/14/2015 9:36:44 PM (last edit: 5/14/2015 9:36:44 PM)
#Maxforums IRC
Open chat window


Support Maxforums.org