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

如何更新默认值

Community Beginner ,
Nov 18, 2024 Nov 18, 2024

Copy link to clipboard

Copied

假设effect中有model A和B两种模式,通过PF_ADD_POPUP添加这两种模式,其中model A下有x和y两个可调节值,x和y的默认值是0.1,model B下也有x和y两个可调节值,其中x和y的默认值是0.2,x和y通过

PF_ADD_ANGLE添加,当我在model A和B两者之前切换的时候,希望x和y的默认值也可以对应切换。

在ParamsSetup的时候,x和y的默认值如果设置成了0.1,在后续切换过程中,有对应的接口或者方法改变x和y的默认值为0.2吗?

谢谢

TOPICS
Effects and Titles , How to , SDK

Views

169

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 , Nov 18, 2024 Nov 18, 2024

I think parameter supervision will do what you want; see the Supervisor sample, in the AE C++ SDK.

Votes

Translate

Translate
Adobe Employee ,
Nov 18, 2024 Nov 18, 2024

Copy link to clipboard

Copied

I think parameter supervision will do what you want; see the Supervisor sample, in the AE 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
Community Beginner ,
Nov 18, 2024 Nov 18, 2024

Copy link to clipboard

Copied

我看过Supervisor,里面并没有可以实现我上述需求的方法。我的需求是可以更新默认值,当在model A的时候,调整x和y的值后,点击“重置参数”后,x和y可以恢复到0.1,当在model B的时候,调整x和y的值后,点击“重置参数”后,x和y可以恢复到0.2。

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 18, 2024 Nov 18, 2024

Copy link to clipboard

Copied

我可以设置两组x和y,然后在model A 和 B切换的时候,隐藏其中一组,可以解决上述问题,但是会带来一些新的问题,比如在model A下对x和y做调整后,希望在model B下也使用调整后的值,同时希望在model A下设置的关键帧在model B下也一样

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 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

LATEST

另外还有个问题,如果打开“切换动画”,再使用PF_UpdateParamUI去更新x和y的值,这个时候更新的值不生效,如果不打开“切换动画”,使用PF_UpdateParamUI去更新x和y的值是生效的,不知道是否是有什么地方设置不对或者需要设置什么属性?

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