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-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.
 

Attached Files:

Name Date Download
example-with-luxrender-data.blend 2010-11-10 00:10 Download

Changes:

Field Old Value Date By
status_idOpen2010-12-21 12:43campbellbarton
close_dateNone2010-12-21 12:43campbellbarton
assigned_toaligorith2010-12-21 12:43campbellbarton
StatusReady2010-12-21 12:43campbellbarton
ResolutionInvestigate2010-11-30 03:36aligorith
File Added13491: example-with-luxrender-data.blend2010-11-10 00:10dougal2
CategoryNone2010-11-08 02:51aligorith
ResolutionNone2010-11-08 02:51aligorith
assigned_tonone2010-11-08 02:51aligorith