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

event id

Explorer ,
Feb 01, 2023 Feb 01, 2023

Copy link to clipboard

Copied

hi we search the event id (int number) into event list for "do action" / "edit content layer" / "update modified content"

TOPICS
Actions and scripting

Views

615

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
Community Expert ,
Feb 01, 2023 Feb 01, 2023

Copy link to clipboard

Copied

So all three event codes?

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
Explorer ,
Feb 01, 2023 Feb 01, 2023

Copy link to clipboard

Copied

yes only this 3

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
Community Expert ,
Feb 01, 2023 Feb 01, 2023

Copy link to clipboard

Copied

I'm not in front of a computer at the moment... The last two sound like they are related to smart object layers. Is the first on is it triggered by running an action or calling an action from a script?

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
Explorer ,
Feb 01, 2023 Feb 01, 2023

Copy link to clipboard

Copied

hi we have photoshop 22 (and soon 23) we want do this script with python

 

import logging
import multiprocessing
import os
from time import sleep

import tkfilebrowser
import win32com.client

delay=0.1


def filter_file_to_export(file_name):
    result = False
    if file_name[-4:] == '.psd':
        result = True
    return result


def main():
    """ Main program """
    logging.info("début de programme")

    try:
        app = win32com.client.Dispatch('photoshop.Application')
    except :
        logging.error('logiciel non trouvé')

  
    #app.activeDocument.ActiveLayer = app.activeDocument.Layers.Item('<< Doubleclick to change etiquette')
    for layer in app.activeDocument.Layers:
        if layer.name == '<< Doubleclick to change etiquette':
            app.activeDocument.ActiveLayer = layer


    app.DoAction("EditContent", "Ensemble1")

    for layer in app.activeDocument.Layers:
        if layer.name == 'étiquette finie':
            app.activeDocument.ActiveLayer = layer

    app.DoAction("update pdf", "Actions par défaut")





    logging.info("fin de programme")
    return 0



if __name__ == "__main__":
    # logging pour les erreur, info ...
    level = logging.INFO
    fmt = '[%(levelname)s] %(asctime)s - %(message)s'
    logging.basicConfig(format=fmt, level=level)
    main()

 

 

my neighbour can do an action with script with photoshop 2020, but not my 22

 

we have this error

 

Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\infographie\AppData\Roaming\Python\Python37\site-packages\win32com\client\dynamic.py", line 628, in __getattr__ ret = self._oleobj_.Invoke(retEntry.dispid, 0, invoke_type, 1) pywintypes.com_error: (-2147352567, 'Une exception s’est produite.', (0, 'Adobe Photoshop', 'Argument illégal - argument 1\n- Valeur requise manquante', None, 0, -2147220262), None)

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
Explorer ,
Feb 02, 2023 Feb 02, 2023

Copy link to clipboard

Copied

hi, into my codeline with doaction not work

 

and we can select a layer with name

but we want, modify content to this layer (it will open à new "windows")

in this new windows we will select a (dynamical) smart object and we want update the content (linked with external file)

 

 

but we do not find edit content and update content code

 

and we can register an action and play it, but doaction code not worke with python 

 

thanks inadvance

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
Community Expert ,
Feb 02, 2023 Feb 02, 2023

Copy link to clipboard

Copied

@laurence roussel12011930 – I don't know about Python, only Javascript.

 

"do action" = What exactly do you mean? How does one select this menu item or perform this command?

 

"edit content layer" = placedLayerEditContents

 

"update modified content" = placedLayerUpdateModified

 

 

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
Explorer ,
Feb 03, 2023 Feb 03, 2023

Copy link to clipboard

Copied

hi, do action is play an action register with alt+f9

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
Community Expert ,
Feb 03, 2023 Feb 03, 2023

Copy link to clipboard

Copied

OK, this is probably

 

'ply ' (don't include the single quotes, this is four total characters, three characters plus a space character)

 

or perhaps

 

play

 

Feedback on these various replies would be appreciated.

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
Explorer ,
Feb 05, 2023 Feb 05, 2023

Copy link to clipboard

Copied

LATEST

ok will try

 

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