Skip to main content
Participant
February 20, 2017
Answered

do "Rasterize all layers"

  • February 20, 2017
  • 1 reply
  • 4801 views

Hello

I'm new to scripting photoshop, i've tried searching a lot how to do this but without luck so far...

If someone could point me the right direction that would be awesome.

I'm "simply" trying to do the same thing than if I click manually on the "Layer" menu then "Rasterize" sub menu and "All Layers".

I need to do that automatically somewhere in the middle of my script.

Is there something to do that?

Thanks a lot

This topic has been closed for replies.
Correct answer Chuck Uebele

You can use the scriptlistener plugin to get the code:

var idrasterizeAll = stringIDToTypeID( "rasterizeAll" );

executeAction( idrasterizeAll, undefined, DialogModes.NO );

1 reply

Chuck Uebele
Community Expert
Chuck UebeleCommunity ExpertCorrect answer
Community Expert
February 20, 2017

You can use the scriptlistener plugin to get the code:

var idrasterizeAll = stringIDToTypeID( "rasterizeAll" );

executeAction( idrasterizeAll, undefined, DialogModes.NO );

Participant
February 21, 2017

thanks you very much!

(and now I tried scriptlistener and i understand how it can help me, thanks again)