Add basic animation functionality to scribbles #2
@ -35,6 +35,7 @@ class SCRIB_OT_draw_curves(bpy.types.Operator):
|
|||||||
else:
|
else:
|
||||||
self.ng_process.nodes['settings.color'].color = [*self.brush_color, 1.]
|
self.ng_process.nodes['settings.color'].color = [*self.brush_color, 1.]
|
||||||
self.ng_process.nodes['view_vector'].vector = context.space_data.region_3d.view_rotation @ Vector((0.0, 0.0, 1.0))
|
self.ng_process.nodes['view_vector'].vector = context.space_data.region_3d.view_rotation @ Vector((0.0, 0.0, 1.0))
|
||||||
|
self.ng_process.nodes['new_key'].boolean = context.scene.tool_settings.use_keyframe_insert_auto
|
||||||
if 'SCRIB_surface_object' in context.object.keys():
|
if 'SCRIB_surface_object' in context.object.keys():
|
||||||
if context.object['SCRIB_surface_object']:
|
if context.object['SCRIB_surface_object']:
|
||||||
self.ng_process.nodes['surface_object'].inputs[0].default_value = context.object['SCRIB_surface_object']
|
self.ng_process.nodes['surface_object'].inputs[0].default_value = context.object['SCRIB_surface_object']
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user