Author Topic: Photoshop Export Dilation Settings Customize in Photoshop.js  (Read 393 times)

Hi!

In the photoshop.js "config" script for the Export to Photoshop plugin it looks like there is an area where one could adjust the padding/dilation used can be adjusted per a user's preference.

"
function ExportConfig() {
  this.padding = "Infinite"
  this.dilation = 0
  this.bitDepth = 8
  this.keepAlpha = true
}
"

Does anyone know the syntax to change the padding type to Dilation + Transparent with a custom pixel dilation value of.. lets say 4 px?

Would it look something like this?

"
function ExportConfig() {
  this.padding = "DilationTransparent"
  this.dilation = 4
  this.bitDepth = 8
  this.keepAlpha = true
}
"

I have a limited understanding of .JS and scripting in general.  There is probably more to it than that?

Thank!