Skip to main content
Volition74au
Inspiring
January 11, 2025
Question

Scripting: Is the selected property keyframeable?

  • January 11, 2025
  • 1 reply
  • 167 views

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
January 11, 2025

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