Skip to main content
Volition74au
Inspiring
Jan 11, 2025 11:55 AM UTC
Question

Scripting: Is the selected property keyframeable?

Hey Guys,

I have a script which adds a bounce function to a property. It works fine. My only thin g i;d like to do is make sure it is only run when the property selected is keyframeable.

Can someone help with a code snippet.
Say if the user has a property that is keyframeable we say "Thanks" with an alert. if it is not keyframeable we can alert with "Not keyframeable". Love to see if anyone has a clever idea for this. or i've missed something obviious.


Thanks In advance

1 reply

Dan Ebberts
Community Expert
Community Expert
Jan 11, 2025 1:59 PM UTC

Depending on what you're doing exactly, you may just need to check the property's canVaryOverTime attribute.

Translate