work
save startup to fix blender opening on 2nd monitor
This commit is contained in:
@@ -183,7 +183,7 @@ def check_handler(scene):
|
||||
anim_layers.visible_layers(obj, nla_tracks)
|
||||
|
||||
# Making sure that scene.als.edit_all_layers_op is not somehow turned on
|
||||
if not any(item.object.als.edit_all_keyframes for item in scene.AL_objects) and scene.als.edit_all_layers_op:
|
||||
if not any(item.object.als.edit_all_keyframes for item in scene.AL_objects if item.object is not None) and scene.als.edit_all_layers_op:
|
||||
scene.als.edit_all_layers_op = False
|
||||
|
||||
# check if track and layers are synchronized
|
||||
@@ -385,24 +385,32 @@ def influence_sync(scene, obj, nla_tracks):
|
||||
|
||||
#Tracks that dont have keyframes are locked
|
||||
for i, track in enumerate(nla_tracks):
|
||||
|
||||
if obj.Anim_Layers[i].lock:
|
||||
continue
|
||||
if not len(track.strips):
|
||||
continue
|
||||
if not len(track.strips[0].fcurves):
|
||||
strip = track.strips[0]
|
||||
if not len(strip.fcurves):
|
||||
if not strip.use_animated_influence:
|
||||
influence = strip.influence
|
||||
anim_layers.use_animated_influence(strip)
|
||||
strip.influence = influence
|
||||
continue
|
||||
if not len(track.strips[0].fcurves[0].keyframe_points):
|
||||
|
||||
if not len(strip.fcurves[0].keyframe_points):
|
||||
#apply the influence property to the temp property when keyframes are removed (but its still locked)
|
||||
if not track.strips[0].fcurves[0].lock:
|
||||
if not strip.fcurves[0].lock:
|
||||
# obj.Anim_Layers[i]['influence'] = track.strips[0].influence
|
||||
scene.als['influence'] = track.strips[0].influence
|
||||
scene.als['influence'] = strip.influence
|
||||
track.strips[0].fcurves[0].lock = True
|
||||
|
||||
if scene.animation_data is None:
|
||||
return
|
||||
action = scene.animation_data.action
|
||||
if action is None:
|
||||
return
|
||||
|
||||
# strip.use_animated_influence = True
|
||||
#if a keyframe was found in the temporary property then add it to the
|
||||
# data_path = 'Anim_Layers[' + str(obj.als.layer_index) + '].influence'
|
||||
data_path = 'als.influence'
|
||||
|
||||
Reference in New Issue
Block a user