Jump to content

How to check if a value of any of the otl's parameters has changed.

Recommended Posts

Hi everyone,


I need to be able to change a value inside my otl based on any parameter change of the otl. Is there a method to check that?





Share this post

Link to post
Share on other sites

Hi, I tested this out. Hopefully the attached HDA example is something close to what you're after.

Changing the parameters of HDA will also affect a node's parameter inside it. I assigned the ParmTupleChanged callback through the onCreated event (and removed the callback through the OnDeleted event).

Although whenever saving the definition, an error pops up.
It seems to error out due to a function eval() call to an undefined variable - which will only be filled after the callback fires. I'm not sure how to bypass that >__<

H16.5.268 Indie - otl_parm_callback.hdalc

On a side note, the example on the docs for the usage of a .ParmTupleChanged (under the addEventCallback) is probably incorrect.. I found this thread which suggested the correct syntax.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now