Author Topic: Bitmap shader conversion scripts  (Read 2837 times)

2023-12-22, 17:10:56

John_Do

  • Active Users
  • **
  • Posts: 143
    • View Profile
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


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

Update Normals Filtering


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


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

Select Corona Materials by Type


Select all the Corona Materials of the chosen type

---
Updates
2024.01.17 : Original scripts updated, two new scripts
« Last Edit: 2024-01-17, 19:34:54 by John_Do »

2023-12-22, 18:16:22
Reply #1

John_Do

  • Active Users
  • **
  • Posts: 143
    • View Profile
Some moving pictures to get a better feel of the script


2023-12-22, 18:45:43
Reply #2

Beanzvision

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 3873
  • Bengamin
    • View Profile
    • Cormats
Thanks for sharing John, looks very handy indeed :)
Bengamin Jerrems l
Portfolio l Click me!

2023-12-22, 20:05:29
Reply #3

BatRM

  • Active Users
  • **
  • Posts: 16
    • View Profile
Thank you very much John_Do, the bitmap converter is really a time saver!

2023-12-25, 12:07:08
Reply #4

Evolist_ua

  • Active Users
  • **
  • Posts: 43
    • View Profile
Wow, thanks a lot!

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

2024-01-17, 19:49:15
Reply #5

John_Do

  • Active Users
  • **
  • Posts: 143
    • View Profile
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.



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.





2024-02-06, 20:19:32
Reply #6

katzenwaffe

  • Active Users
  • **
  • Posts: 42
    • View Profile
Theese scripts are totally awesome! Love it!!

Good work!

2024-02-07, 11:19:22
Reply #7

Beanzvision

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 3873
  • Bengamin
    • View Profile
    • Cormats
Is this not working for S22? Seems to be fine in 2023/24 ;)
Bengamin Jerrems l
Portfolio l Click me!

2024-02-07, 13:10:19
Reply #8

John_Do

  • Active Users
  • **
  • Posts: 143
    • View Profile
Is this not working for S22? Seems to be fine in 2023/24 ;)

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 ?

2024-02-07, 17:36:34
Reply #9

Beanzvision

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 3873
  • Bengamin
    • View Profile
    • Cormats
I did but no luck. Not to worry though ;)
Bengamin Jerrems l
Portfolio l Click me!

2024-04-12, 16:52:10
Reply #10

John_Do

  • Active Users
  • **
  • Posts: 143
    • View Profile
I'm still planning to release more scripts, here is a little work in progress :

Smart creation


Creating multiple shaders at once


Works also with only one node


Even if there is no node selected


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

2024-04-12, 20:49:53
Reply #11

Beanzvision

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 3873
  • Bengamin
    • View Profile
    • Cormats
Excellent stuff :)
Bengamin Jerrems l
Portfolio l Click me!

2024-04-15, 15:33:06
Reply #12

tuami

  • Active Users
  • **
  • Posts: 186
    • View Profile
I'm still planning to release more scripts, here is a little work in progress :


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

2024-05-07, 18:03:01
Reply #13

John_Do

  • Active Users
  • **
  • Posts: 143
    • View Profile
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




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




Added something for the tidy maniacs


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


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



For sure it's not really useful if you can leverage Cryptomatte but otherwise, it makes the process a bit simpler and faster.
« Last Edit: 2024-05-07, 18:45:09 by John_Do »

2024-06-21, 09:23:44
Reply #14

tuami

  • Active Users
  • **
  • Posts: 186
    • View Profile
hey when are you planning to publish this? i think it's totally great what you're doing, greetings
tuami

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

Implemented the thing as a plugin