Post #4105: Anyone want to take a stab at this and work out why interpolation is crashing Bl
📋 Metadata
- Author: adamearle
- Date: 2021-10-03 14:55:37
- Type:
question - Quality Score: 7/10
🏷️ Tags
⚙️ Related PME Features
- Python Scripting
- Macro Editor
💬 Content
Anyone want to take a stab at this and work out why interpolation is crashing Blender? The idea is to use markers as way to set automated interpolation, so when keys are moved around on the timeline Bender will automatically update the interpolation.
import bpy
Set area Type = Dopesheet
bpy.context.area.ui_type = ‘DOPESHEET’
bpy.context.space_data.ui_mode = ‘GPENCIL’
bpy.context.object.data.use_autolock_layers = True
bpy.context.object.data.use_multiedit = True
Start Marker
bpy.ops.marker.add()
bpy.ops.marker.rename(name=“User Time”)
In Marker
bpy.ops.screen.keyframe_jump(‘EXEC_DEFAULT’, True, next=False)
bpy.ops.marker.add()
bpy.ops.marker.rename(name=“In Point”)
bpy.ops.action.select_column(mode=‘CFRA’)
bpy.ops.gpencil.select_all(action=‘SELECT’)
Out Marker
bpy.ops.screen.keyframe_jump(‘EXEC_DEFAULT’, True, next=True)
bpy.ops.marker.add(),
bpy.ops.marker.rename(name=“Out Point”)
bpy.ops.action.select_column(mode=‘CFRA’)
bpy.ops.gpencil.select_all(action=‘SELECT’)
jump back to start maker
bpy.ops.screen.marker_jump(‘EXEC_DEFAULT’, True, next=False)
bpy.ops.action.select_all(action=‘SELECT’)
Set area Type = 3D Viewport
bpy.context.area.ui_type = ‘VIEW_3D’
bpy.ops.object.mode_set(mode=‘EDIT_GPENCIL’)
bpy.ops.gpencil.select_all(action=‘SELECT’)
Link and interpolerate
bpy.ops.gpencil.select_linked()
bpy.ops.gpencil.interpolate_sequence()
bpy.context.object.data.use_multiedit = False
Set area Type = Dopesheet
bpy.context.area.ui_type = ‘DOPESHEET’
bpy.context.space_data.ui_mode = ‘GPENCIL
Interpolation with marker.py (1.4 KB)