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

[XML] Generating xml results in incorrect positional data

New Here ,
Feb 16, 2023 Feb 16, 2023

Copy link to clipboard

Copied

Hello,

I'm creating an FCP XML generation library and had encountered some funky maths with position,scale and anchor points.

I got the feel they are all related, but could'nt find the correct method to accurately supply keyframe data in pixels and have it translated correctly to the relative/fractional number that is stored in the xml file.

 

Could someone please help me understand how the conversion works so I could implement transform effects?

 

Example:
Input:

pos: 1655.8, 882.9

anchor: 1134.8, 799.3

scale: 66.7

 

Desired output:

pos: -0.591039, -0.740126

anchor: 0.0910389, 0.240126

scale: 66.7

 

Actual output:

pos: 0.271364, 0.793074

anchor: 0.091042, 0.240093

scale: 66.7

TOPICS
SDK

Views

558

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

correct answers 1 Correct answer

Adobe Employee , Feb 16, 2023 Feb 16, 2023

Sorry, Adobe has no additional details to offer; PPro's FCP XML implementation is based on Apple's file format specification

Votes

Translate

Translate
Adobe Employee ,
Feb 16, 2023 Feb 16, 2023

Copy link to clipboard

Copied

Sorry, Adobe has no additional details to offer; PPro's FCP XML implementation is based on Apple's file format specification

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
New Here ,
Feb 16, 2023 Feb 16, 2023

Copy link to clipboard

Copied

LATEST

Thanks.

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