Copy link to clipboard
Copied
I have created an event listener to detect Photoshop events. I used following 4-char IDs to detect their events,
Also I want to know is there any 4-char IDs to detect event Create Video Timeline?
I have found stringID ( "makeTimeline" ) for above event.
But I need charID for above event.
I used Photoshop CC 2014, 2015 and 2017.
Copy link to clipboard
Copied
You don't need charID you need typeID which is just number. You need to first ask for stringID and then you can use this number. Script event manager uses charIDs but it's converted into typeID on the end.
Copy link to clipboard
Copied
alert (stringIDToTypeID("makeTimeline") == charIDToTypeID(String.fromCharCode(0,0,3,14)))
Copy link to clipboard
Copied
Thank you for the response @r-bin.
I have tried following solution.
alert (stringIDToTypeID("makeTimeline") == charIDToTypeID(String.fromCharCode(0,0,3,14)))
I have a function to get charIDToTypeID function as mentioned in below question.
Get the direct implementation of stringIDToTypeID
values for charIDToTypeID(String.fromCharCode(0,0,3,14)) returns always 782.
But in my environment, Create Video TImeline event takes type ID as follows when I am trying to
values for stringIDToTypeID("makeTimeline"),
Photoshop CC 2014.0.0 - 931
Photoshop CC 2015.5.1 - 1086
Photoshop CC 2017.0.0 - 1082
When I am trying it another PC, it takes different value Create Video Timeline event for same versions as follows,
Photoshop CC 2014.0.0 - 942
Photoshop CC 2015.5.1 - 1075
Photoshop CC 2017.0.0 - 1082
stringIDToTypeID("makeTimeline") value seems to be dynamic.
It seems suggested solution is not working. Do you have any idea for another solution?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now