@@ -65,7 +65,7 @@ def changed(self, action):
65
65
66
66
# Handle change
67
67
if action .key and action .key [0 ] in ["clips" , "effects" ] and action .type in ["update" , "insert" ]:
68
- log .info (action .values )
68
+ log .debug (action .values )
69
69
# Update the model data
70
70
self .update_model (get_app ().window .txtPropertyFilter .text ())
71
71
@@ -88,7 +88,7 @@ def update_item_timeout(self):
88
88
self .selected = []
89
89
self .filter_base_properties = []
90
90
91
- log .info ("Update item: %s" % item_type )
91
+ log .debug ("Update item: %s" % item_type )
92
92
93
93
if item_type == "clip" :
94
94
c = get_app ().window .timeline_sync .timeline .GetClip (item_id )
@@ -200,7 +200,7 @@ def remove_keyframe(self, item):
200
200
c = Effect .get (id = clip_id )
201
201
202
202
if c and property_key in c .data : # Update clip attribute
203
- log .info ("remove keyframe: %s" % c .data )
203
+ log .debug ("remove keyframe: %s" % c .data )
204
204
205
205
# Determine type of keyframe (normal or color)
206
206
keyframe_list = []
@@ -232,7 +232,7 @@ def remove_keyframe(self, item):
232
232
# Delete point (if needed)
233
233
if point_to_delete :
234
234
clip_updated = True
235
- log .info ("Found point to delete at X=%s" % point_to_delete ["co" ]["X" ])
235
+ log .debug ("Found point to delete at X=%s" % point_to_delete ["co" ]["X" ])
236
236
keyframe ["Points" ].remove (point_to_delete )
237
237
238
238
# Reduce # of clip properties we are saving (performance boost)
@@ -278,7 +278,7 @@ def color_update(self, item, new_color, interpolation=-1, interpolation_details=
278
278
if c :
279
279
# Update clip attribute
280
280
if property_key in c .data :
281
- log .info ("color update: %s" % c .data )
281
+ log .debug ("color update: %s" % c .data )
282
282
283
283
# Loop through each keyframe (red, blue, and green)
284
284
for color , new_value in [("red" , new_color .red ()), ("blue" , new_color .blue ()), ("green" , new_color .green ())]:
@@ -287,14 +287,14 @@ def color_update(self, item, new_color, interpolation=-1, interpolation_details=
287
287
# Loop through points, find a matching points on this frame
288
288
found_point = False
289
289
for point in c .data [property_key ][color ]["Points" ]:
290
- log .info ("looping points: co.X = %s" % point ["co" ]["X" ])
290
+ log .debug ("looping points: co.X = %s" % point ["co" ]["X" ])
291
291
if interpolation == - 1 and point ["co" ]["X" ] == self .frame_number :
292
292
# Found point, Update value
293
293
found_point = True
294
294
clip_updated = True
295
295
# Update point
296
296
point ["co" ]["Y" ] = new_value
297
- log .info ("updating point: co.X = %s to value: %s" % (point ["co" ]["X" ], float (new_value )))
297
+ log .debug ("updating point: co.X = %s to value: %s" % (point ["co" ]["X" ], float (new_value )))
298
298
break
299
299
300
300
elif interpolation > - 1 and point ["co" ]["X" ] == previous_point_x :
@@ -307,8 +307,8 @@ def color_update(self, item, new_color, interpolation=-1, interpolation_details=
307
307
point ["handle_right" ]["X" ] = interpolation_details [0 ]
308
308
point ["handle_right" ]["Y" ] = interpolation_details [1 ]
309
309
310
- log .info ("updating interpolation mode point: co.X = %s to %s" % (point ["co" ]["X" ], interpolation ))
311
- log .info ("use interpolation preset: %s" % str (interpolation_details ))
310
+ log .debug ("updating interpolation mode point: co.X = %s to %s" % (point ["co" ]["X" ], interpolation ))
311
+ log .debug ("use interpolation preset: %s" % str (interpolation_details ))
312
312
313
313
elif interpolation > - 1 and point ["co" ]["X" ] == closest_point_x :
314
314
# Only update interpolation type (and the RIGHT side of the curve)
@@ -320,13 +320,13 @@ def color_update(self, item, new_color, interpolation=-1, interpolation_details=
320
320
point ["handle_left" ]["X" ] = interpolation_details [2 ]
321
321
point ["handle_left" ]["Y" ] = interpolation_details [3 ]
322
322
323
- log .info ("updating interpolation mode point: co.X = %s to %s" % (point ["co" ]["X" ], interpolation ))
324
- log .info ("use interpolation preset: %s" % str (interpolation_details ))
323
+ log .debug ("updating interpolation mode point: co.X = %s to %s" % (point ["co" ]["X" ], interpolation ))
324
+ log .debug ("use interpolation preset: %s" % str (interpolation_details ))
325
325
326
326
# Create new point (if needed)
327
327
if not found_point :
328
328
clip_updated = True
329
- log .info ("Created new point at X=%s" % self .frame_number )
329
+ log .debug ("Created new point at X=%s" % self .frame_number )
330
330
c .data [property_key ][color ]["Points" ].append ({'co' : {'X' : self .frame_number , 'Y' : new_value }, 'interpolation' : 1 })
331
331
332
332
# Reduce # of clip properties we are saving (performance boost)
@@ -385,7 +385,7 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
385
385
else :
386
386
new_value = None
387
387
388
- log .info ( "%s for %s changed to %s at frame %s with interpolation: %s at closest x: %s" % (property_key , clip_id , new_value , self .frame_number , interpolation , closest_point_x ))
388
+ log .debug ( "Changing value for %s in clip %s to %s at frame %s with interpolation: %s at closest x: %s" % (property_key , clip_id , new_value , self .frame_number , interpolation , closest_point_x ))
389
389
390
390
391
391
# Find this clip
@@ -405,7 +405,7 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
405
405
if c :
406
406
# Update clip attribute
407
407
if property_key in c .data :
408
- log .info ("value updated: %s" % c .data )
408
+ log .debug ("value updated: %s" % c .data )
409
409
410
410
# Check the type of property (some are keyframe, and some are not)
411
411
if property_type != "reader" and type (c .data [property_key ]) == dict :
@@ -414,15 +414,15 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
414
414
found_point = False
415
415
point_to_delete = None
416
416
for point in c .data [property_key ]["Points" ]:
417
- log .info ("looping points: co.X = %s" % point ["co" ]["X" ])
417
+ log .debug ("looping points: co.X = %s" % point ["co" ]["X" ])
418
418
if interpolation == - 1 and point ["co" ]["X" ] == self .frame_number :
419
419
# Found point, Update value
420
420
found_point = True
421
421
clip_updated = True
422
422
# Update or delete point
423
423
if new_value != None :
424
424
point ["co" ]["Y" ] = float (new_value )
425
- log .info ("updating point: co.X = %s to value: %s" % (point ["co" ]["X" ], float (new_value )))
425
+ log .debug ("updating point: co.X = %s to value: %s" % (point ["co" ]["X" ], float (new_value )))
426
426
else :
427
427
point_to_delete = point
428
428
break
@@ -437,8 +437,8 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
437
437
point ["handle_right" ]["X" ] = interpolation_details [0 ]
438
438
point ["handle_right" ]["Y" ] = interpolation_details [1 ]
439
439
440
- log .info ("updating interpolation mode point: co.X = %s to %s" % (point ["co" ]["X" ], interpolation ))
441
- log .info ("use interpolation preset: %s" % str (interpolation_details ))
440
+ log .debug ("updating interpolation mode point: co.X = %s to %s" % (point ["co" ]["X" ], interpolation ))
441
+ log .debug ("use interpolation preset: %s" % str (interpolation_details ))
442
442
443
443
elif interpolation > - 1 and point ["co" ]["X" ] == closest_point_x :
444
444
# Only update interpolation type (and the RIGHT side of the curve)
@@ -450,19 +450,19 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
450
450
point ["handle_left" ]["X" ] = interpolation_details [2 ]
451
451
point ["handle_left" ]["Y" ] = interpolation_details [3 ]
452
452
453
- log .info ("updating interpolation mode point: co.X = %s to %s" % (point ["co" ]["X" ], interpolation ))
454
- log .info ("use interpolation preset: %s" % str (interpolation_details ))
453
+ log .debug ("updating interpolation mode point: co.X = %s to %s" % (point ["co" ]["X" ], interpolation ))
454
+ log .debug ("use interpolation preset: %s" % str (interpolation_details ))
455
455
456
456
# Delete point (if needed)
457
457
if point_to_delete :
458
458
clip_updated = True
459
- log .info ("Found point to delete at X=%s" % point_to_delete ["co" ]["X" ])
459
+ log .debug ("Found point to delete at X=%s" % point_to_delete ["co" ]["X" ])
460
460
c .data [property_key ]["Points" ].remove (point_to_delete )
461
461
462
462
# Create new point (if needed)
463
463
elif not found_point and new_value != None :
464
464
clip_updated = True
465
- log .info ("Created new point at X=%s" % self .frame_number )
465
+ log .debug ("Created new point at X=%s" % self .frame_number )
466
466
c .data [property_key ]["Points" ].append ({'co' : {'X' : self .frame_number , 'Y' : new_value }, 'interpolation' : 1 })
467
467
468
468
if not clip_updated :
@@ -518,11 +518,13 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
518
518
# Update the preview
519
519
get_app ().window .refreshFrameSignal .emit ()
520
520
521
+ log .info ("Item %s: changed %s to %s at frame %s (x: %s)" % (clip_id , property_key , new_value , self .frame_number , closest_point_x ))
522
+
521
523
# Clear selection
522
524
self .parent .clearSelection ()
523
525
524
526
def update_model (self , filter = "" ):
525
- log .info ("updating clip properties model." )
527
+ log .debug ("updating clip properties model." )
526
528
app = get_app ()
527
529
_ = app ._tr
528
530
0 commit comments