Maxwell Render

Maxwell Render Information Repository
It is currently Thu Jun 20, 2013 5:12 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Aug 07, 2009 4:57 pm 

Joined: Tue Apr 05, 2005 12:08 am
Posts: 1026
Location: Genova!
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


Top
 Profile  
 
PostPosted: Sat Aug 08, 2009 6:20 am 
User avatar

Joined: Wed Nov 16, 2005 3:02 am
Posts: 7638
Location: desk #861
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:
! _-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

_________________
Next Limit Team


Top
 Profile  
 
PostPosted: Sat Aug 08, 2009 1:25 pm 

Joined: Tue Apr 05, 2005 12:08 am
Posts: 1026
Location: Genova!
Thanks a lot JDHill! it works. That's a great help.
Thanks again.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group