Page 1 of 1
extract material(s)
Posted: Tue Sep 29, 2015 10:43 pm
by dk2079
is it somehow possible to only convert the material of the selected object from Rhino to Maxwell?
as far as i understand the command now it always globally scans the file for any non maxwell material and converts them (potentially creating a material mess because of all sort of scene geometry that can not undergo full maxwell treatment)
thanks!
Re: extract material(s)
Posted: Tue Sep 29, 2015 11:22 pm
by JDHill
There is no option for operating on only selected objects, but the command ignores hidden objects, so given that you have an object selection, you could create a toolbar button with the following script:
Code: Select all_NoEcho
_-RunScript (
Rhino.Command "_NoEcho _SetRedrawOff "
Rhino.Command "_NoEcho _Invert _Group _Enter _Hide _Enter "
Rhino.Command "_NoEcho _Maxwell_ExtractMaterials A "
Rhino.Command "_NoEcho _Show _Sellast _Ungroup _Invert "
Rhino.Command "_NoEcho _SetRedrawOn "
)
Re: extract material(s)
Posted: Wed Sep 30, 2015 11:19 pm
by dk2079
Hi Jeremy,
thanks for the macro.. but before I could even respond to the limitations this might have.. you already coded something better into the new update as I see from the Updates page..
many thanks for the work on this and the other helpful improvements!
Re: extract material(s)
Posted: Wed Sep 30, 2015 11:23 pm
by JDHill
Well, it was something that simply hadn't occurred to me when I originally created the command, but the plugin function it calls internally already takes a "selected objects only" argument, so it was just a matter of adding a couple new options to the command.