Page 2 of 3

Re: Some idea for adding materials

Posted: Sat Mar 19, 2016 11:57 am
by prehabitat
Please upload ! :)

Re: Some idea for adding materials

Posted: Sat Mar 19, 2016 10:02 pm
by face_off
Now the best part - I managed to make a button to create new material (actually to load one saved earlier) - which means that this is exactly what I wanted, even more, I have more control, because I can define more commonly used materials (like white matte, black matte, chrome, etc) and add them via single click.
How did you do this pls Mac? I couldn't find a Rhino command to load a rmtl file.

Paul

Re: Some idea for adding materials

Posted: Sun Mar 20, 2016 6:49 am
by neiwei845458454
Hi Paul, I want to be able to add a material from a RhinoScript command, If you put the code for working well. Thx.

Re: Some idea for adding materials

Posted: Sun Mar 20, 2016 7:03 am
by neiwei845458454
MAC,
please do it by more icon tools. That is very good.

Re: Some idea for adding materials

Posted: Sun Mar 20, 2016 9:55 am
by formatio
Paul, I found it here:

http://tips.rhino3d.com/2011/06/new-com ... no-v5.html

And the command itself is:

RenderLoadMaterialFromFile

Which is not auto completing in command line of rhino - but it works.

Guys, I am working on the toolbar for adding materials with single click + some more goodies :)

Regards,
Mac

Re: Some idea for adding materials

Posted: Sun Mar 20, 2016 3:51 pm
by formatio
Toolbar is ready:

viewtopic.php?f=41&t=53219

Regards,
Mac

Re: Some idea for adding materials

Posted: Sun Mar 20, 2016 8:22 pm
by prehabitat
Terrific! thanks Mac,

I'll test it out tonight :)

Re: Some idea for adding materials

Posted: Tue Mar 22, 2016 4:05 am
by face_off
Thanks Mac - I was unaware of those Rhino commands. The RenderRemoveUnusedMaterials command could be useful too.

Paul

Re: Some idea for adding materials

Posted: Tue Mar 22, 2016 3:40 pm
by formatio
Hi Paul

I was unaware of them too - Found them almost by accident.

Regards,
Mac

Re: Some idea for adding materials

Posted: Tue Mar 22, 2016 3:44 pm
by v-cube
I am interested !!!

Andreas



formatio wrote:Hi

Great news

I tested saving octane materials to file - It works flawlessly. I thought that I can save only rhino materials that way. Now I think I will save all my octane materials to files - it is easier and quicker to add them this way instead of creating and than importing from localdb.

Now the best part - I managed to make a button to create new material (actually to load one saved earlier) - which means that this is exactly what I wanted, even more, I have more control, because I can define more commonly used materials (like white matte, black matte, chrome, etc) and add them via single click.

Thank you Paul, your tip was crucial.

P.S. - If someone is interested in a toolbar with such a buttons let me know, I'll create such one and upload on the forums.

Regards,
Mac