Notifications
Clear all

[Closed] Save bitmap before Effect

Hi,

I’ve made an effect script to make any picture improvements like an effects but i want to save the bitmap allready rendered before the effects runs on it.

i try with:

on apply <bitmap>  do <expr>
 on  preApply <bitmap>  do <expr>

But i cannot find how to say it to save the bitmap to a specific file path before the effects run.

Do someone have a solution?

5 Replies
on apply bmp do
    (	 
              origBmp = copy bmp --Copy bitmap before any effects are applied
              display origBmp --I'm displaying it here, but this is where you would save
              --Actual effect is applied after this
    )

I tested preapply and it doesn’t seem to be raising any events shrugs. But this does work; At the very beginning of “apply” the pre-effect render is being passed in, so just save it right off the bat.

Cheers

Thanks but the problem is when i wanna save it. It doesn’t work. Maybe a little mistake from me. Do you have the right line of code for that?

on apply bmp do
    (
    	origBmp = copy bmp --Copy bitmap before any effects are applied
    	origBmp.fileName = "C:\\mybitmap.bmp" --save file string goes here
    	save origBmp
    	close origBmp --close to clean up memory
    	--Actual effect is applied after this
    )

Cheers

Thank you very much it’s working fine.

no problem.
Best of luck on your script!