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

How to get animation frame ID?

Explorer ,
Jan 31, 2017 Jan 31, 2017

Copy link to clipboard

Copied

Hello!

I'm trying to get identifiers of frames on the timeline panel (Frame animation mode).

I see, that they are stored inside Image Resource Section of PSD file.

Resource ID is 4000 (0x0fa0) which is supposed to be used by plug-ins.

But I can't figure out how to get them using javascript or OLE-automation. Is it possible?

And if not, is it possible to read them from C/C++ plug-in and send to javascript?

TOPICS
SDK

Views

1.2K

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
Adobe
Jan 31, 2017 Jan 31, 2017

Copy link to clipboard

Copied

I would try to modify GetHistory in the History example of the C/C++ SDK.

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, 2017 Feb 01, 2017

Copy link to clipboard

Copied

There is a method called CountPIResources(type) in SDK. It returns count of pseudo-resources with specified type. But i don't know the type of resource. I have tried different types but count is always 0.

Do you know the exact type of this resource with animation info inside?

Or can I somehow retrive resource type from PSD file?

Here is a dump of resource section block:

psd_dump.png

It starts with 8BIM (38 42 49 4d) and resource id = 4000 (0f a0)

Black blocks are null pascal string (00 00) and 4bites with resource size

Red 8 bytes are unkown.

Next 4 bytes looks like another size.

Green bytes looks like a header of a descriptor: 8BIM 'AnDs' and 4 bytes with size.

Next 4 bytes is a descriptor version (always 16)

Other bytes are descriptor data with animation frame info that I need.

I've tried to use red bytes as a type ('mani' and 'IRFR') without results.

Also there is an old thread (link) where you gave some piece of code which works with this information. So you are definetly aware of what is going on here. Please, help.

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, 2017 Feb 01, 2017

Copy link to clipboard

Copied

First 4 red bytes is a type written backwards - 'inam'.

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 07, 2017 Feb 07, 2017

Copy link to clipboard

Copied

My current solution is able to read 'AnDs' data only from saved document.

Is it possible to get FrameInfo with changes that are not saved yet?

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 Beginner ,
Nov 25, 2018 Nov 25, 2018

Copy link to clipboard

Copied

Can you share your code? I want to read this image resource block too, but there's no documentation about it.

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
Nov 27, 2018 Nov 27, 2018

Copy link to clipboard

Copied

LATEST

There is only this documentation. Adobe Photoshop File Formats Specification

Did you find it in the PSD?

This information is not available at runtime.

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