layer.translate behavior in configurator panel

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

theiviaxx

layer.translate behavior in configurator panel

Post by theiviaxx »

i have a simple panel with a Script File button to execute the following script:

Code: Select allapp.activeDocument.activeLayer.translate(256);

When i click this, I get:

The object "previous history state" is not available

This was part of a larger script that has some funky bahvior when running through configurator. Through ESTK, it works as expected. So I narrowed it down to this.

Why is it trying to do history state stuff?

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

theiviaxx

layer.translate behavior in configurator panel

Post by theiviaxx »

nvm, someone pointed me to bb/viewtopic.php?f=2&t=4041 for a fix
pfaffenbichler

layer.translate behavior in configurator panel

Post by pfaffenbichler »

Doe the Panel refer to a jsx-file or have you included the code itself?