@@ -200,7 +200,8 @@ def remove_keyframe(self, item):
200
200
clip_data = c .data .get ('objects' ).get (object_id )
201
201
202
202
if property_key in clip_data : # Update clip attribute
203
- log .debug ("remove keyframe: %s" % clip_data )
203
+ log_id = f"{ clip_id } /{ object_id } " if object_id else clip_id
204
+ log .debug ("%s: remove %s keyframe. %s" , log_id , property_key , clip_data .get (property_key ))
204
205
205
206
# Determine type of keyframe (normal or color)
206
207
keyframe_list = []
@@ -238,7 +239,9 @@ def remove_keyframe(self, item):
238
239
# Reduce # of clip properties we are saving (performance boost)
239
240
clip_data = {property_key : clip_data [property_key ]}
240
241
if object_id :
241
- clip_data = {'objects' : {object_id : clip_data }}
242
+ c .data = {'objects' : {object_id : clip_data }}
243
+ else :
244
+ c .data = clip_data
242
245
243
246
# Save changes
244
247
if clip_updated :
@@ -286,7 +289,8 @@ def color_update(self, item, new_color, interpolation=-1, interpolation_details=
286
289
287
290
# Update clip attribute
288
291
if property_key in clip_data :
289
- log .debug ("color update: %s" % clip_data )
292
+ log_id = f"{ clip_id } /{ object_id } " if object_id else clip_id
293
+ log .debug ("%s: update color property %s. %s" , log_id , property_key , clip_data .get (property_key ))
290
294
291
295
# Loop through each keyframe (red, blue, and green)
292
296
for color , new_value in [
@@ -353,7 +357,9 @@ def color_update(self, item, new_color, interpolation=-1, interpolation_details=
353
357
# Reduce # of clip properties we are saving (performance boost)
354
358
clip_data = {property_key : clip_data [property_key ]}
355
359
if object_id :
356
- clip_data = {'objects' : {object_id : clip_data }}
360
+ c .data = {'objects' : {object_id : clip_data }}
361
+ else :
362
+ c .data = clip_data
357
363
358
364
# Save changes
359
365
if clip_updated :
@@ -435,7 +441,8 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
435
441
436
442
# Update clip attribute
437
443
if property_key in clip_data :
438
- log .debug ("value updated: %s" % clip_data )
444
+ log_id = f"{ clip_id } /{ object_id } " if object_id else clip_id
445
+ log .debug ("%s: update property %s. %s" , log_id , property_key , clip_data .get (property_key ))
439
446
440
447
# Check the type of property (some are keyframe, and some are not)
441
448
if property_type != "reader" and type (clip_data [property_key ]) == dict :
@@ -554,9 +561,10 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
554
561
555
562
# Reduce # of clip properties we are saving (performance boost)
556
563
clip_data = {property_key : clip_data .get (property_key )}
557
-
558
564
if object_id :
559
- clip_data = {'objects' : {object_id : clip_data }}
565
+ c .data = {'objects' : {object_id : clip_data }}
566
+ else :
567
+ c .data = clip_data
560
568
561
569
# Save changes
562
570
if clip_updated :
@@ -837,7 +845,7 @@ def update_model(self, filter=""):
837
845
for property in all_properties .items ():
838
846
self .add_property (property , filter , c , item_type )
839
847
840
- # Insert objects properties from custom effetcs
848
+ # Insert objects properties from custom effects
841
849
if objects_raw_properties :
842
850
for obj_id in objects_raw_properties :
843
851
objects_all_properties = OrderedDict (sorted (objects_raw_properties [obj_id ].items (), key = lambda x : x [1 ]['name' ]))
0 commit comments