Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.6 Bug Tracker: Browse
[#24469] Cannot add keyframes on custom properties in IDPropertyGroups
Date:
2010-10-31 14:34
Priority:
3
State:
Closed
Submitted by:
Doug Hammond (
dougal2
)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Animation system
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
Summary:
Cannot add keyframes on custom properties in IDPropertyGroups
Detailed description
For example, the LuxRender addon texture data is arranged such that the properties for each Lux texture type are arranged into nested IDPropertyGroups (IDPG), and the 'top-level' group describes which Lux texture to use:
top-level IDPG: bpy.data.textures['IOR_G-07'].luxrender_texture
If bpy.data.textures['IOR_G-07'].luxrender_texture.type == 'cauchy', then the addon will look for additional properties in the corresponding sub-IDPG:
bpy.data.textures['IOR_G-07'].luxrender_texture.luxrender_tex_cauchy
This particular sub-IDPG contains a couple of FloatProperties, one of which is:
bpy.data.textures['IOR_G-07'].luxrender_texture.luxrender_tex_cauchy.a
When I try to add a keyframe on that property, blender raises the following error:
Insert Key: Could not insert keyframe, as RNA Path is invalid for the given ID (ID = TEIOR_G-07, Path = a)
It should also be noted that although keyframe creation also seems to succeed for properties such as bpy.data.textures['IOR_G-07'].luxrender_texture.type, that the values do not appear in the Graph editor and do not change upon frame-change.
This is in contrast to the native property bpy.data.textures['IOR_G-07'].type, which is keyframeable, shows in the Graph editor and does change upon frame-change.
All in all, this problem means that none of the custom LuxRender properties can currently be animated.
Followup
Message
Date
: 2010-11-08 02:51
Sender
:
Joshua Leung
How're you adding the keyframes? RMB->Insert Keyframes or from Python?
It would also help if you could upload a file with some of these properties set up already so that we can just load the file and test this problem.
Cheers!
Date
: 2010-11-10 00:10
Sender
:
Doug Hammond
Hi,
Yes, I have been using RMB->Insert Keyframes.
Also attaching a sample .blend. I'm not sure if the data will be visible unless you have the luxrender addon enabled - instructions are here if you wish to try:
http://www.luxrender.net/wiki/index.php?title=LuxBlend_2.5_installation_instructions
Date
: 2010-11-30 03:36
Sender
:
Joshua Leung
Testing instructions for the provided sample file (using standard blender):
1) Open Datablocks viewer
2) Goto Material
3) Insert keyframe on luxrender_material -> luxrender_mat_matte -> Kd_color -> 1
The problem is that we cannot currently resolve RNA paths for nested custom properties, hence the path being obtained is only for the last part of the path.
Date
: 2010-12-15 15:20
Sender
:
Ton Roosendaal
Joshua: I'm cleaning up older reports now. If there's just a feature missing (like nested properties) it can be marked as todo for everyone.
Date
: 2010-12-21 12:43
Sender
:
Campbell Barton
fixed r33833.
Attached Files:
Name
Date
Download
example-with-luxrender-data.blend
2010-11-10 00:10
Download
Changes:
Field
Old Value
Date
By
status_id
Open
2010-12-21 12:43
campbellbarton
close_date
None
2010-12-21 12:43
campbellbarton
assigned_to
aligorith
2010-12-21 12:43
campbellbarton
Status
Ready
2010-12-21 12:43
campbellbarton
Resolution
Investigate
2010-11-30 03:36
aligorith
File Added
13491: example-with-luxrender-data.blend
2010-11-10 00:10
dougal2
Category
None
2010-11-08 02:51
aligorith
Resolution
None
2010-11-08 02:51
aligorith
assigned_to
none
2010-11-08 02:51
aligorith