Some idea for adding materials

Rhino 3D (Export script developed by SamPage; Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

User avatar
formatio
Licensed Customer
Posts: 131
Joined: Sun May 18, 2014 11:00 am
Location: EU
Contact:

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
User avatar
formatio
Licensed Customer
Posts: 131
Joined: Sun May 18, 2014 11:00 am
Location: EU
Contact:

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
prehabitat
Licensed Customer
Posts: 495
Joined: Fri Aug 16, 2013 10:30 am
Location: Victoria, Australia

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?
Win10/3770/16gb/K600(display)/GTX780(Octane)/GTX590/372.70
Octane 3.x: GH Lands VARQ Rhino5 -Rhino.io- C4D R16 / Revit17
User avatar
face_off
Octane Plugin Developer
Posts: 15697
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

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
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
formatio
Licensed Customer
Posts: 131
Joined: Sun May 18, 2014 11:00 am
Location: EU
Contact:

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
User avatar
face_off
Octane Plugin Developer
Posts: 15697
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

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
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
formatio
Licensed Customer
Posts: 131
Joined: Sun May 18, 2014 11:00 am
Location: EU
Contact:

Hmm - Thumbs are not refreshing, but when I change some setting in the material it's thumbnail turns from octane thumb:
octane_mat.JPG
octane_mat.JPG (10.14 KiB) Viewed 4854 times
to this:
octane_mat-2.JPG
octane_mat-2.JPG (10.44 KiB) Viewed 4854 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 :)
User avatar
face_off
Octane Plugin Developer
Posts: 15697
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

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
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
prehabitat
Licensed Customer
Posts: 495
Joined: Fri Aug 16, 2013 10:30 am
Location: Victoria, Australia

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?)
Win10/3770/16gb/K600(display)/GTX780(Octane)/GTX590/372.70
Octane 3.x: GH Lands VARQ Rhino5 -Rhino.io- C4D R16 / Revit17
User avatar
formatio
Licensed Customer
Posts: 131
Joined: Sun May 18, 2014 11:00 am
Location: EU
Contact:

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
Post Reply

Return to “Rhinoceros 3D”