By daros
#305625
hi to all.
Actually, to have correct layer naming in lwo (lightwave) files exported by Rhino, the only way i found is by copying the layer's name on to the objects name.
boring procedure:
1) select each meshes by layer
2) copy or type the layer's name on to the objects properties name.
in projects with more as 200 layers it can take a while.
every time the client sends an project update all the procedure again :(
is there some other way?
Is there some way to fix the lwo exporter?
It is easy to make Rhino scripts?
Some advanced parameters somewhere?
thanks for any idea.

david
#305647
Hi David, try this and let me know if it does what you want:

1. make a new button in a toolbar (hold down CTRL and drag an existing button)
2. hold down SHIFT and right-click the new button to edit its macro
3. in the 'Left mouse button command' text box, paste the following
Code: Select all
! _-RunScript (
Dim objects, object, layer
objects = Rhino.GetObjects("Select objects to rename")
If IsArray(objects) Then		
   For Each object In objects
      layer = Rhino.ObjectLayer(object)
      Rhino.ObjectName object, layer
   Next		
End If	
)
4. click OK to stop editing the button's macro
5. left-click the new button
6. you will be prompted to select some objects
7. after you do that, the names of the selected objects will be changed to their layer names
Sketchup 2024 Released

Any idea of when the Maxwell Sketchup plugin will […]

Will there be a Maxwell Render 6 ?

Let's be realistic. What's left of NL is only milk[…]