Page 1 of 3
Some idea for adding materials
Posted: Tue Mar 15, 2016 12:28 am
by formatio
Hi Paul.
I was recently working on couple of scenes in Rhino, rendering them with octane for rhino and during the process this appeared to me:
Is it possible to quicken/simplify adding new octane material, could it be done via some button? It would be perfect if it were 4 buttons - one for each type of material.
Currently it is a lot of clicking, at least 5 (but when I want to add diffuse instead of glossy it raises to 7) - doing it 50 times in one scene starts to annoy. (I can duplicate existing material but that is not always possible).
Regards,
Mac
Re: Some idea for adding materials
Posted: Fri Mar 18, 2016 9:35 am
by formatio
Hi,
Currently I have a feeling that all materials are refreshing every time I open materials tab - It locks rhino a bit, especially if There are 100+ materials.
Perfect would be to refresh only the one material that is being edited, is that possible to implement?
Regards,
Mac
Re: Some idea for adding materials
Posted: Fri Mar 18, 2016 10:30 am
by prehabitat
formatio wrote:Hi Paul.
I was recently working on couple of scenes in Rhino, rendering them with octane for rhino and during the process this appeared to me:
Is it possible to quicken/simplify adding new octane material, could it be done via some button? It would be perfect if it were 4 buttons - one for each type of material
Regards,
Mac
Great idea Mac,
Paul: is this something you need to do or can we rhinoscript it somehow?
Re: Some idea for adding materials
Posted: Fri Mar 18, 2016 10:16 pm
by face_off
Currently I have a feeling that all materials are refreshing every time I open materials tab - It locks rhino a bit, especially if There are 100+ materials.
Refreshing in the Viewport, or having their thumbnails refresh?
Is it possible to quicken/simplify adding new octane material, could it be done via some button? It would be perfect if it were 4 buttons - one for each type of material.
Can you do this already with....1) Create new Octane Material, set material Node Type to Specular, Save to File "C:\Users\USERNME\AppData\Roaming\McNeel\Rhinoceros\5.0\Localization\en-US\Render Content\Octane Specular". Then to do a quick load, click Create New Material and select Octane Specular.rmtl. You cannot script the creation of materials in Rhino. If you want to be able to add a material from a RhinoScript command, it's something I can try to code into the plugin if the above workflow is not sufficient for you - let me know.
Paul
Re: Some idea for adding materials
Posted: Fri Mar 18, 2016 10:19 pm
by formatio
Hi - Thanks for the tip - I think that it itself is a big help - I'll definitely try it.
As for the refreshing - I was referring to the thumbnails - many times all thumbnails are refreshing even if I am editing only one material or just by opening materials tab.
Regards,
Mac
Re: Some idea for adding materials
Posted: Fri Mar 18, 2016 10:44 pm
by face_off
As for the refreshing - I was referring to the thumbnails - many times all thumbnails are refreshing even if I am editing only one material or just by opening materials tab.
Does question 13 in the FAQ (
https://docs.otoy.com/Rhino/?page_id=416) resolve this problem for you?
Paul
Re: Some idea for adding materials
Posted: Fri Mar 18, 2016 10:55 pm
by formatio
Hmm - Thumbs are not refreshing, but when I change some setting in the material it's thumbnail turns from octane thumb:

- octane_mat.JPG (10.14 KiB) Viewed 4918 times
to this:

- octane_mat-2.JPG (10.44 KiB) Viewed 4918 times
To see changes I have to right click it and hit "Update preview now" - then it show correct octane thumb.
Would be perfect If it refreshed itself automatically

Re: Some idea for adding materials
Posted: Fri Mar 18, 2016 11:00 pm
by face_off
Would be perfect If it refreshed itself automatically
If you want it to update automatically you will need to put up with the delay when opening the Materials panel whilst Rhino asks the plugin to regenerate the preview icons. This is controlled by Rhino - so there is not much I can do about it - sorry.
Paul
Re: Some idea for adding materials
Posted: Fri Mar 18, 2016 11:50 pm
by prehabitat
What controls how many samples the preview's are rendered to? So few pixels it should only take a few seconds for 10's of materials to 10's of samples right? (Sorry if a dumb question, point me to the manual if req'd)
Is it possible to add a button to enable the automatic thumbnail re-generation so we can test? Might work for people with enough power?
(Assume rhino can't keep a cache of either the thumbnail or data relating to last material update time/date & last thumbnail generation time/date?)
Re: Some idea for adding materials
Posted: Sat Mar 19, 2016 11:36 am
by formatio
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