• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

scripting photoshop exr-IO

New Here ,
Sep 12, 2019 Sep 12, 2019

Copy link to clipboard

Copied

i was trying to write a script for photoshop that automates the merging of two #'d files from differant folders

and adding them as layers and saving them to a new folder. simple right, i have a few copies of scripts that 

do just that but they are for jpg's or psd's and don't work with .EXR multi layers from MAYA and VRAY.

 

at first it was problematic because you could not alter .exr but then EXR-io came out and I thought there 

was hope, because it allowed you to add a layer to .EXR. problem solved right? https://www.exr-io.com/

 

well not exactly because the plug-in makes you select options and press "enter" to open the first .EXR, and then 

again requires you to press 'enter' again upon saving the file. which makes record and playback automation 

difficult, and also stops my other scripts from working. 

 

as i am working with animations each folder ussually contains between 1,000 and 200,000 frames around

1-5gig each. 

 

it occured to me i could run a script with .psd and then convert to .EXR but i would end up with huge storage 

on my hard drive with multiple folders, and the possibility of degredation to the files would always happen.

 

so, the process is to render out 2 folders of multiple files from Maya via Vray, merge the layers on an .exr

in Photoshop, and then open them in the foundry's Nuke for compositing.

 

reference:

https://www.youtube.com/watch?v=t8HM-nl7Ens

 

https://forums.chaosgroup.com/forum/v-ray-for-maya-forums/v-ray-for-maya-wishlist/992234-vray-render...

 

started, not finished, since i know well, nothing about c++

image_51147.jpg

TOPICS
Actions and scripting , SDK

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Sep 12, 2019 Sep 12, 2019

Copy link to clipboard

Copied

Oops, almost forgot. References:

 

(Hmm .exr is 34mb will try alter) 

It appears .exr is not a recognized picture type... Oh well

 

 

rect shadow.png

shpere.png

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 12, 2019 Sep 12, 2019

Copy link to clipboard

Copied

https://www.deviantart.com/duhuhhuh/art/Frieghtliner-813046139

 

Hmm... This a .psd of the .exr which can be converted with Exr-io plug-in, if you want to try.

 

Strange, Adobe doesn't recognize .psd as a picture

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 18, 2019 Sep 18, 2019

Copy link to clipboard

Copied

Hmm... This might solve my problem. Will have to check.

https://forums.cgsociety.org/t/nuke-how-to-write-multi-channel-exrs/1294860

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2019 Sep 20, 2019

Copy link to clipboard

Copied

LATEST

I tried playing with it, last night. Nuke doesn't recognize a png but splits it up to rgba. And when you export a .exr it tries to add a alpha to every channel which is annoying. 

 

Maybe if I isolate the alpha for the shadow layer it wouldn't be so bad, but still... 50 alpha channels for every layer is gonna get in the way

 

Maybe it would be better to go back to the script or editing 200,000 .exr by hand.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines