Bitmap shader conversion scripts

Hey guys,

Here are some custom scripts for you, just in time for Christmas !

- C4D Bitmap to Corona Bitmap

  • Corona Bitmap to C4D Bitmap
  • Update normals filtering
  • Sort Corona Materials by Type
  • Select Corona Materials by Type

I wrote them a quite some time ago but with the perspective of releasing more scripts next year, I’ve improved them in many ways and while they’re not perfect (details here), I hope they will be useful to some of you.

INSTALLATION, USAGE AND LIMITATIONS
Read the docs

WHAT IT DOES
Convert Bitmaps Scripts

22BTZXn.png

iUQS6zW.png

Pretty self explanatory, convert all the bitmaps shaders in the material in one way or another ( C4D Bitmap >< Corona Bitmap )

Update Normals Filtering

ERhfGRV.png

Change the normals filtering method to Roughness Modulation over the selected materials.
Note that Roughness modulation comes with some limitations, mainly when mixing Corona shaders with Cinema ones. More info here : https://support.chaos.com/hc/en-us/articles/19161682524305

Sort Corona Materials by Type

lUtld9v.png

Sort all Corona Materials in the scene by type using dedicated layers

Select Corona Materials by Type

ZLGquS5.png

Select all the Corona Materials of the chosen type


Updates
2024.01.17 : Original scripts updated, two new scripts
Corona Tools_v0.2.zip (27.7 KB)

Some moving pictures to get a better feel of the script

4lopDEJ.gif

Thanks for sharing John, looks very handy indeed :smiley:

Thank you very much John_Do, the bitmap converter is really a time saver!

Wow, thanks a lot!

Now we need to wait for the developers to fix the bug with bitmap+ transformation in layer shader

I’ve just update the archive with the latest version of the scripts, and wrote somewhat of a documentation.

For the bitmap conversion scripts the Layer Shader is now supported ( even when nested inside another Layer Shader ) BUT the undo is broken in this specific case, something on the Python SDK side which could be investigated. So be careful and use the other conversion script to go back.

Updated the Normals Filtering script with a dialog box to choose the filtering method. Also new icon.

NNyyKY9.gif

And I’ve added two scripts to sort Corona Materials in your scenes. Not the most exciting thing but it has been useful for me once or twice, so maybe for you too.

U3KenaY.gif

nxneXK1.gif

Theese scripts are totally awesome! Love it!!

Good work!

Is this not working for S22? Seems to be fine in 2023/24 :wink:

I don’t know, I haven’t tested the scripts on anything other than the latest 2024.1/2024.2. Did you try it on S22 ?

I did but no luck. Not to worry though :wink:

I’m still planning to release more scripts, here is a little work in progress :

Smart creation

AnNU00a.gif

Creating multiple shaders at once

oVjSdZh.gif

Works also with only one node

MREnEhl.gif

Even if there is no node selected

8mjNX6Q.gif

And all the commands can be assigned to a keyboard shortcut! :smiling_face_with_three_hearts:

Excellent stuff :smiley:

whoa i need this! would be great if there are more shaders to be found there, thanks keep doing great helpful work :smiley:

Moar progress, even if I’m a bit slow lately because of ongoing projects :

Implemented the thing as a plugin

New commands to add often used shaders

rdQyAPl.gif

VqcI71S.gif

More shaders available for insertion in existing node tree, some with unique behaviors

dJtxWaq.gif

IPiXaO5.gif

MSnGX4m.gif

Added something for the tidy maniacs

aOU1VSY.gif

Finally solved something that was bothering me from a long time

Create mask directly from the active selection and (almost) never bother again with ID numbers

cuhZ6Qy.gif

It works on objects and materials, and can create one mask for each selected element or a shared one

cuhZ6Qy.gif

ps0L2sg.gif

For sure it’s not really useful if you can leverage Cryptomatte but otherwise, it makes the process a bit simpler and faster.

hey when are you planning to publish this? i think it’s totally great what you’re doing, greetings
tuami

Hey, thanks for the reminder and the interest. I didn’t have much time to spend on it lately, I have to get back to it !

Thank You John !!!
You are APPRECIATED !!!

Hey, when are you going to release this plugin, it’s really, really, really good!

Very useful. Please keep working on it. Thanks!

I’m back on the project, I’d like to finish it before the end of the year.

I got motivated again by writing a new command. I don’t know why I didn’t come up with the idea sooner since I know the ins and outs of Corona Materials for a while now.

4QEMbCB.gif

Not perfect yet - it breaks with some textures sets - but in the end it will allow you to load pretty much any texture set from any vendor, as long as it follows loosely the PBR convention.