How can I make a custom UI widget, using Blender Python, which cannot be animated by the user?
I've looked on the docs but can't find reference to 'preventing' animation.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.
Sign up to join this communityHow can I make a custom UI widget, using Blender Python, which cannot be animated by the user?
I've looked on the docs but can't find reference to 'preventing' animation.
By default, props has ANIMATABLE
option. Just override it by passing empty set:
Frame: bpy.props.IntProperty(
name = "frame",
default = 0,
options = set()
)
[]
I used options = {'HIDDEN'}
and it appears to be working.
$\endgroup$
:
instead of '='. That was a mistake. But yes, I can mess up with the names: list, array, set, dictionary, etc...
$\endgroup$
{'HIDDEN'}
?
$\endgroup$
set()
$\endgroup$