Author Topic: Corona A6: Save all VFB channels  (Read 22122 times)

2014-02-28, 13:32:13

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Since I hate saving each channel (Beauty + render elements) one by one I made a little script that does it all in one go. I know it will be implemented in the Framebuffer sooner or later but anyways. Each renderelement saved by hand is one too much :-D

How to use:
Just run the Script and a standard image file saving dialog will appear where you can choose a path + filename and adjust image format settings. Be aware though that all gamma settings (only possible up to max2013 anyways) will be ignored, these are handled by the Script.
Should be working with all file formats.
I've tested the script in 2012 and 2014. Since 2014+ is handling gamma automatically I've added a "legacy" mode for 2013 and below, please test it if all passes are correctly saved with different settings.
If you want to use the Script as a macroscript just remove the "--" of the first two lines.

Works with daily builds / A6 only (after 1st of March 2014)

changelog:
v0.03
- changed the file dialog to a standard bitmap save dialog where image format settings can be adjusted
v0.02
- Alpha issue has been fixed
- gamma issues in max versions prior 2014 have been fixed
« Last Edit: 2015-04-02, 14:01:49 by maru »
Any sufficiently advanced bug is indistinguishable from a feature.

2014-02-28, 13:38:48
Reply #1

AdamHotovy

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 61
  • Corona Heisenberg
    • View Profile
    • Corona Renderer
haha. You cannot imagine how many times I was writing Ondrej to put that button into frame buffer and it was always shifted for later . Thanks for this great script!
ah.
I like turtles.

2014-02-28, 13:45:48
Reply #2

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
And I was annoying him all the time with my request for maxscript vfb methods so I could do it myself :D
Any sufficiently advanced bug is indistinguishable from a feature.

2014-02-28, 13:57:10
Reply #3

MPVIS

  • Active Users
  • **
  • Posts: 20
    • View Profile
    • MPVIS
Wow thanks DeadClown, that was one of the things I really missed in coronas VFB. Good job

2014-02-28, 14:48:26
Reply #4

kahein

  • Active Users
  • **
  • Posts: 181
    • View Profile
great !!
thanks
Asus Z10PE-D16 WS / Dual Xeon E5-2690 v4 @ 2.60GHz / RAM 64 Go - GTX 970
Win 10 / Max 2017 / Corona 1.4

2014-02-28, 16:05:43
Reply #5

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
I just noticed that the alpha channel is not returned linearly with this maxscript method. I reported it and hopefully it's fixed soon :-/ So better not use it until a fixed build is out.
Any sufficiently advanced bug is indistinguishable from a feature.

2014-03-01, 13:23:49
Reply #6

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Ok, Alpha issue is fixed in the daily builds starting today (1st of March, 2014). You will also have to re-download the latest script version.
I've also fixed a problem with max versions prior to 2014: Channels in non-linear image formats like png, tif etc were saved with gamma 1.0; I've added an automatic legacy mode which should handle that for all image formats except exr and hdr. Further tests would be appreciated ;)
« Last Edit: 2014-03-01, 13:32:37 by DeadClown »
Any sufficiently advanced bug is indistinguishable from a feature.

2014-03-01, 18:55:59
Reply #7

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
I have changed the file dialog to a standard bitmap save dialog where image format settings can be adjusted. Hopefully this was the last change on the script ;-)
Any sufficiently advanced bug is indistinguishable from a feature.

2014-03-05, 20:51:43
Reply #8

Caue Rodrigues

  • Active Users
  • **
  • Posts: 185
    • View Profile
    • Studio IKI
thx a lot man!!

2014-03-05, 22:43:59
Reply #9

Chakib

  • Active Users
  • **
  • Posts: 787
  • Corona Omnomnomer !
    • View Profile
Very useful i was waiting for a button to do this, thanks a lot Deadlown !

2014-03-12, 02:04:35
Reply #10

Chakib

  • Active Users
  • **
  • Posts: 787
  • Corona Omnomnomer !
    • View Profile
I tried the v0.03 with Max 2014 ( autogamma ) and the gamma isn't correct after saving ( dark ), in Max 2013 it works ok since i can adjust it !

Same thing with v0.02 in Max 2014.

I'm using the  A6 RC1.

2014-03-12, 10:16:16
Reply #11

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Are you using it in a scene which was not made in max 2014? Some old scene from 2012 or 2013 maybe? I didn't test it but internally old scenes will still use the old "manual" gamma in- and output settings - for compatibility reasons. Could you make a test with a "fresh" scene?

In 2013 it shouldn't make any difference if you change anything in the gamma settings in the bitmap saving dialog (it's not wired ;) ). I'm doing it automatically via script in versions prior to max 2014.
Any sufficiently advanced bug is indistinguishable from a feature.

2014-03-12, 16:29:24
Reply #12

Chakib

  • Active Users
  • **
  • Posts: 787
  • Corona Omnomnomer !
    • View Profile
No bro it's all done in max 2014 ( my haagendazs project in wip section ), but i'll try a new other scene and let you know.

2014-03-12, 17:52:36
Reply #13

Chakib

  • Active Users
  • **
  • Posts: 787
  • Corona Omnomnomer !
    • View Profile
Ok here is a fresh very simple teapot scene in max 2014 using the v0.03

Same issue.


2014-03-12, 18:14:24
Reply #14

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Very weird. Happens with all file formats or just a particular one? (jpg, exr, png)
Any sufficiently advanced bug is indistinguishable from a feature.