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

How to update modified parameters in render function?

Engaged ,
Sep 15, 2021 Sep 15, 2021

Hi gang;

 

I've had this issue come up a number of times.

 

In UserChangedParam and UpdateParameterUI I am modifying some parameters. Specifically, I am setting coordinates for a 'slave' point parameter based off a 'master' point parameter. This works just fine if I move the master point parameter interactively - the slave also moves accordingly.

 

However, if I animate the master point parameter, and then scrub through the timeline, the slave does not update. I assume I need to somehow force AE to update the parameter results during the render function. Does anyone have suggestions on how I can go about solving my issue?

 

Thanks!

-Richard

TOPICS
SDK
348
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

correct answers 1 Correct answer

Community Expert , Sep 15, 2021 Sep 15, 2021

this is a very issuie issue.

before CC2015 it was possible to modify params during a render, but it caused a re-render loop as the changed param would invalidate the current render as it was being rendered.

since CC2015, the render thread is not allowed to modify the project in any way.

also, since MFR, multiple frames are being rendered simultaniouly, so... what should the param be set to?

 

if you're used the salve param to affect a render in any way (such as being read by expressions by other

...
Translate
Engaged ,
Sep 15, 2021 Sep 15, 2021

Hi Richard

I believe it's not possible to update a parameter each frame, other than if the user specifically modifies another parameter. Though someone more knowledgable than me may have a roundabout way to achieve this!

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 ,
Sep 15, 2021 Sep 15, 2021

this is a very issuie issue.

before CC2015 it was possible to modify params during a render, but it caused a re-render loop as the changed param would invalidate the current render as it was being rendered.

since CC2015, the render thread is not allowed to modify the project in any way.

also, since MFR, multiple frames are being rendered simultaniouly, so... what should the param be set to?

 

if you're used the salve param to affect a render in any way (such as being read by expressions by other effect/layers) then i would say this design isn't supported by AE's workflow.

 

if the salve param is not used to affect the render in any way, and all you care about is the display when the user is vieweing the effect, then you can:

1. create a custom UI that redraws on time changes. use it's draw event to trigger changes in the effect.

2. create an AEGP with an idle_hook, then scan the current comp for your effect, and change the effect as needed on the fly.

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
Engaged ,
Sep 17, 2021 Sep 17, 2021
LATEST

Thank you as always Shachar (and James).

 

I'd be utterly lost without your thoughtful  help and expertise. Thank you.

 

Richard

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