From BlenderWiki

Jump to: navigation, search
Note: This is an archived version of the Blender Developer Wiki. The current and active wiki is available on wiki.blender.org.

Grease Pencil: New operators

Introduction

This page describes the new operators added during Grease Pencil revamp.

TODO (WIP page)

General operators

GPENCIL_OT_hideselect_toggle

A parameter to control the opacity of the selection (orange dots) is available, but to set a value of 0 or 1, CTRL+H keys can be used to switch between the values.

The reason for this functionality is reduce the noise in complex drawings, and specially during sculpt with fine details.

This operator is only available during Edit strokes mode.

Layer operators

GPENCIL_OT_layer_merge

This operator merge the current layer with the next layer in the layer stack.

Stroke operators

GPENCIL_OT_stroke_arrange

Change drawing order to draw before or after a stroke in a layer. This operator is only available in 3D view.

GPENCIL_OT_stroke_change_color

Change the color of selected strokes to the current active color.

GPENCIL_OT_stroke_lock_color

Lock strokes of the color for editing.

GPENCIL_OT_stroke_apply_thickness

Apply thickness modificator to all strokes of the layer.

GPENCIL_OT_stroke_cyclic_toggle

Draw a line from first to last point. The operator iterate between close and open.

GPENCIL_OT_stroke_join

Join several strokes in one stroke using invisble lines between them. The result stroke is a continuous stroke.

GPENCIL_OT_stroke_flip

Reverse the start and end points of the stroke. This operator is used to join properly strokes.

Palette operators

GPENCIL_OT_palette_add

GPENCIL_OT_palette_remove

GPENCIL_OT_palette_change

GPENCIL_OT_palette_lock_layer

Palette Colors operators

GPENCIL_OT_palettecolor_add

GPENCIL_OT_palettecolor_remove

GPENCIL_OT_palettecolor_isolate

GPENCIL_OT_palettecolor_hide

GPENCIL_OT_palettecolor_reveal

GPENCIL_OT_palettecolor_lock_all

GPENCIL_OT_palettecolor_unlock_all

GPENCIL_OT_palettecolor_move

GPENCIL_OT_palettecolor_select

GPENCIL_OT_palettecolor_copy

Drawing Brushes operators

GPENCIL_OT_brush_add

GPENCIL_OT_brush_remove

GPENCIL_OT_brush_change

GPENCIL_OT_brush_move

GPENCIL_OT_brush_crt_presets

GPENCIL_OT_brush_copy

GPENCIL_OT_brush_select