Author Topic: Here is an adaptation of VrayAutomator for Corona  (Read 2725 times)

2023-05-03, 15:53:27

Simon_Bourgeois

  • Active Users
  • **
  • Posts: 8
    • View Profile
I've been working on this script to automate material tweaking.
It works for both Physical and Legacy materials, i've added the option to add roundedges ,
It's the first version of the script , i plan on adding lights and also a few corona bitmap settings in the near futur , but as the material part is already done and functioning, i think it can already be quite handy for other Corona users.

you can find the script here:
https://www.mediafire.com/file/o34093bn2tprrpu/SimonScripts-Corona_Material_Automator_V1-1.mcr/file

hope it will be usefull
« Last Edit: 2023-05-22, 22:42:00 by Simon_Bourgeois »

2023-05-22, 22:44:54
Reply #1

Simon_Bourgeois

  • Active Users
  • **
  • Posts: 8
    • View Profile
« Last Edit: 2023-05-23, 06:44:32 by Simon_Bourgeois »

2023-06-13, 19:37:30
Reply #2

Simon_Bourgeois

  • Active Users
  • **
  • Posts: 8
    • View Profile
new update

https://www.mediafire.com/file/o67fn6g9197c4vo/SimonScripts-Corona_Material_Automator_V1-4.mcr/file

i've added the option to add or remove triplar
the additionalbump intensity has also been added to the script

2023-06-14, 09:58:28
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12709
  • Marcin
    • View Profile
Hi, thanks a lot for sharing your tool, but could you please explain what exactly its purpose is? I am sure many people are not familiar with "VrayAutomator". A short description or a demo video would be great.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2023-07-09, 15:23:24
Reply #4

Simon_Bourgeois

  • Active Users
  • **
  • Posts: 8
    • View Profile
It is a script intended  to change material settings and add triplanar or round edges on multiple objects materials at once.
I will try to find time to make a video but unfortunately i don't have much time, anyway most settings are kind of self-explanatory.

You can find more information on ScriptSpot:

http://www.scriptspot.com/3ds-max/scripts/corona-material-automator

I also have other Corona render script there :
http://www.scriptspot.com/3ds-max/scripts/corona-copy-material-slot
http://www.scriptspot.com/3ds-max/scripts/coronacolorcorrection-auto

or 3dsmax script:
http://www.scriptspot.com/3ds-max/scripts/save-selected-with-maps
http://www.scriptspot.com/3ds-max/scripts/populate-material-editor
http://www.scriptspot.com/3ds-max/scripts/custom-align
http://www.scriptspot.com/3ds-max/scripts/group-to-editablepoly
 

2023-09-29, 14:21:47
Reply #5

Simon_Bourgeois

  • Active Users
  • **
  • Posts: 8
    • View Profile
Hi every one,
I've updated this script, there is a lot of new features and it is now compatible with corona 10 and 3dsmax 2024.
you can now create some instanced controlers to your triplanars or to your uvw randomize nodes.
it has a material from folder option that automaticaly creates materials from an image folder, you can generate PBR materials automaticaly but it can also create simplier materials, with an option to create opacity from the PNG alpha or from an external black and white mask image, it just need to has "_mask" at the end of its name.
It will be too long to describe every option just check it for yourself, it is a powerfull tool to automate material creation and tweaking and it' free :)

http://www.scriptspot.com/3ds-max/scripts/corona-material-automator

2023-12-22, 12:24:02
Reply #6

Simon_Bourgeois

  • Active Users
  • **
  • Posts: 8
    • View Profile
New Update!!!
A lot of new features, you can now target material ID, the UI is now composed of three Tabs, the first Tab is focused on material, the second on Camera and  the third on Lights, most lights and camera settings can now be applied accross multiple objects. there is also some tools for lights and cameras, you can scatter lights, reinstance lights, set light target z position without changing light orientation, there is also a target distance offset that behave like the camera target distance. For Camera,you can convert Standard and Physical Camera to Corona Camera, there is an option to fix sketchup Imported Camera Field of view,  you can convert multiple static cameras to an animated camera, the camera will be animated depending on the cameras names, you can also do the opposite, converting an animated camera to multiple static cameras. There is also an automatic turnaround setup and a camera to path option to create a camera animation based on a path. you can also create static camera based on camera created with the above functions, it is quite handy to create cameras around an object.there is also an AutoFocus, the build-in object focus in camera works on object center , it is not well suited if you need to focus on a ground floor or any big object, the interactiv autofocus works only on picked object and is suited for static camera, for animated camera there is a bake focus option that will work on all displayed objects and will create animation keys on each frames, it also works on animated surfaces if it is not working , add an editpoly modifier to the animated objects.

http://www.scriptspot.com/3ds-max/scripts/corona-material-automator

2024-01-12, 15:48:09
Reply #7

brr

  • Active Users
  • **
  • Posts: 96
    • View Profile
Hello Simon Bourgeois,
Thanks for the script!

A small suggestion from me:
Is it possible to add an additional checkbox for selections?
Right now, it works on selected objects and material ID's, which cause limited functionality, especially if some material ID has CoronaLayeredMaterial. If the model is collapsed and consists of many materials in multisub mat- the user need to select id's first.
It would be much more flexible if we had an additional option to choose between selected objects, ID's and selected materials in slate material editor.

Please look at the attachment.

Best regards.
« Last Edit: 2024-01-12, 15:55:19 by brr »

2024-01-25, 19:04:07
Reply #8

Simon_Bourgeois

  • Active Users
  • **
  • Posts: 8
    • View Profile
Hello,
Thanks for the feedback, you are right, it is a good idea, i was already planing to do it but I am currently correcting bugs related to the changes i did when implementing Material Id filtering... i will try to implement the slate material selection filtering option as soon as i can . it is only a little checkbox in the UI but  almost every functions need to be rewritten, it might be a lot of work... :)
link to the latest version:
https://www.mediafire.com/file/2xkl70dqm550t82/SimonScripts-Corona_Material_Automator_V1-7-8.mcr/file

Best Regards
« Last Edit: 2024-01-25, 23:18:58 by Simon_Bourgeois »

2024-01-26, 20:31:01
Reply #9

Simon_Bourgeois

  • Active Users
  • **
  • Posts: 8
    • View Profile
Hello brr,
I have done the SME selection update, you can find the new version here:
https://www.mediafire.com/file/25v6e7sltmlw17j/SimonScripts-Corona_Material_Automator_V1-7-9.mcr/file
It is a first version of this new feature, for now it targets the selected material nodes,
you can target a material in a layered material or multiple Mat IDs in one action, add randomizer, triplanar, round edges and tweak parameters as in previous version of the script.
In futur updates, i will try to unable the control of colorcorrection nodes at any location of the materials, now it works only for the nodes in first position in the material, i had to restrict to the first node because the new triplanar and randomizer system makes it more difficult to  keep track of nodes but the SME selection could make any node available i just need to rethink the all colorcorrect part of the script... :)

Best Regards

« Last Edit: 2024-01-29, 22:16:26 by Simon_Bourgeois »