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

Problem with PF_GetCurrentState() in Premiere Pro

Explorer ,
Jan 16, 2023 Jan 16, 2023

I cannot make this work like in AE if I want to get the state of the current layer (index 0). I invoke it like 

A_Time curr_time = { host_time, ae_data.in_data->time_scale };
		A_Time one_frame_dur = { ae_data.in_data->time_step, ae_data.in_data->time_scale };
		suites.ParamUtilsSuite3()->PF_GetCurrentState(ae_data.in_data->effect_ref, 0, &curr_time, &one_frame_dur, &ae_state);

Returns different values on every frame. In PP however I always get the same state. Is it supposed to work in PP?

TOPICS
SDK
786
Translate
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 ,
Jun 05, 2024 Jun 05, 2024

@shachar carmiDo you have any idea?

Translate
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 ,
Jun 05, 2024 Jun 05, 2024

sorry, permier is not my strong suite. i can say that the state should be different for every frame if the input layer (or any other layer param) is a video that changes from frame to frame, so even if the param values remain constant the state should change from frame to frame. so i don't know why it would be different in premier.

Translate
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 ,
Jun 10, 2024 Jun 10, 2024

Thank you for the reply! Where can I raise this bug then?

Translate
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 ,
Jun 10, 2024 Jun 10, 2024

i'll ping the egineers and write back here with their answer.

Translate
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 ,
Jun 11, 2024 Jun 11, 2024

Great, thank you!

Translate
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 ,
Jun 11, 2024 Jun 11, 2024

this is the answer i got. bummer.

PF_GetCurrentState() is not implemented in the Premiere host
 
if you check the error return code (you should always check and respond to error codes!) it should return
PF_Err_INVALID_CALLBACK
 
I am not sure an appropriate alternative for the same functionality on the Pr side, hopefully some other adobe person can weigh in here
 
--dmw

 

Translate
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 ,
Jun 17, 2024 Jun 17, 2024
LATEST

Ok, thank you anyways!

Translate
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