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

Scripting: Is the selected property keyframeable?

Participant ,
Jan 11, 2025 Jan 11, 2025

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

TOPICS
Scripting
153
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 ,
Jan 11, 2025 Jan 11, 2025
LATEST

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

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