• 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 hide paramtere PF_ADD_FLOAT_SLIDERX in after effect sdk in c++.

Community Beginner ,
May 18, 2023 May 18, 2023

Copy link to clipboard

Copied

How to hide paramtere PF_ADD_FLOAT_SLIDERX in after effect sdk in c++. I'm hide using of ui_flags PF_PUI_INVISIBLE but got error. Atteched error screenshot below.

TOPICS
SDK

Views

846

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 ,
May 18, 2023 May 18, 2023

Copy link to clipboard

Copied

can you post the code where you define the parameter?

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 ,
May 18, 2023 May 18, 2023

Copy link to clipboard

Copied

Please see snippet code of ParamsSetup function and UpdateParamsUI function

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 ,
May 18, 2023 May 18, 2023

Copy link to clipboard

Copied

nothing obvious comes to mund, except that you need to make a copy of the param definition, change the flag in the copy, and pass the copy to PF_UpdateParamUI.

quoting from the docs: "During PF_Cmd_UPDATE_PARAMS_UI, you may only change the appearance and enable state of parameters. Use PF_UpdateParamUI() from PF_ParamUtilSuite3 to update the UI, passing it a copy of the parameter you wish to modify. Do not attempt to modify the original"

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 ,
May 18, 2023 May 18, 2023

Copy link to clipboard

Copied

Thank you for time but did not work at all

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 ,
May 18, 2023 May 18, 2023

Copy link to clipboard

Copied

is the "update params ui" function getting called at all? did you define PF_OutFlag_SEND_UPDATE_PARAMS_UI on global setup?

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 ,
May 18, 2023 May 18, 2023

Copy link to clipboard

Copied

I have also called the update params ui function PF_Cmd_UPDATE_PARAMS_UI and define PF_OutFlag_SEND_UPDATE_PARAMS_UI on global setup but Gain slider did not hide. I have attached screenshot of code.

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 ,
May 18, 2023 May 18, 2023

Copy link to clipboard

Copied

LATEST

when making a copy of the param defs, you need to actually copy that param's defs into the copy, and then change that one flag. the structure you're currently passing probably contains junk data that might make the call invalid.

is an arror code returned from the PF_UpdateParamUI call?

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