Rhino 5 script, rename layer material based on layer name

Forums: Rhino 5 script, rename layer material based on layer name
Post, discuss and share handy resources like textures, models and HDRI maps in this forum.
Forum rules
Please do not post any material that is copyrighted or restricted from public use in any way. OTOY NZ LTD and it's forum members are not liable for any copyright infringements on material in this forum. Please contact us if this is the case and we will remove the material in question.

Rhino 5 script, rename layer material based on layer name

Postby vanhage » Sat Mar 16, 2013 3:21 pm

vanhage Sat Mar 16, 2013 3:21 pm
Wanted to share a script I wrote that helps keep my materials organized when I move geometry from Rhino to Octane.

With my architecture workflow in Rhino, I like to organize my layers by material, but even after the careful naming of my layers, rhino assigns a default prefix to any modified layer material (which makes assigning materials in octane arduous). When you run the script, you are asked what layers you want to rename and the material names are automatically changed to the layer names (which are then identical in octane).

Really simple and straightforward and it saves me from having to type in the same information twice. Hope its useful.
Attachments
NameLayerMaterialsByLayerName.zip
Rhino 5 .RVB script to change layer material name to match layer name
(823 Bytes) Downloaded 467 times
Layer Materials Capture.jpg
Screen Example
Win 8 64 | 2X Geforce GTX680 | i7-3770K Ivy Bridge 3.5GHz | 32GB
vanhage
Licensed Customer
Licensed Customer
 
Posts: 31
Joined: Sun Jan 20, 2013 4:00 pm
Location: Brooklyn, NY, USA

Re: Rhino 5 script, rename layer material based on layer nam

Postby Refracty » Sat Mar 16, 2013 5:00 pm

Refracty Sat Mar 16, 2013 5:00 pm
he, he, that is great. I thought about writing a script for the same purpose but I am not a progrgammer so I skipped this.
Thank you for setting this up and sharing it.
It saves tedious work.
User avatar
Refracty
Licensed Customer
Licensed Customer
 
Posts: 1598
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln

Re: Rhino 5 script, rename layer material based on layer name

Postby ArchMP » Tue Jan 21, 2020 10:11 am

ArchMP Tue Jan 21, 2020 10:11 am
Thanks!
ArchMP
Licensed Customer
Licensed Customer
 
Posts: 44
Joined: Sun Dec 04, 2016 10:26 am

Return to Resources and Sharing


Who is online

Users browsing this forum: No registered users and 47 guests

Sun Apr 28, 2024 8:00 am [ UTC ]