Hotkey Alt S for Grease Pencil needs menu entry

Reiner's picture
Project: 
Bforartists Tracker

Grease Pencil. Enable Editing. The Hotkey Alt S is to scale a stroke segment bigger or smaller.

This functionality has no menu entry. A functionality without menu entry is no go.

Task: add menu entry for this functionality in the Tool Shelf below Delete. Then remove hotkey.

Status: 
Closed (fixed)
Priority: 
Normal
Category: 
Task
Component: 
User interface
Assigned: 
Images: 
Reporter: 
Created: 
Fri, 10/30/2015 - 18:53
Updated: 
Sun, 11/22/2015 - 19:04

Comments

4
Reiner's picture

Assigned: Unassigned » Reiner
Reiner's picture

Interesting problem. I need to pass two parameters. And i really need both. All code examples in the scripts so far passes just one parameter. Still at looking for an example where two parameters are passing.

The most logical way would to use a variable. But this does simply nothing, it doesn't even pass one of the parameters.

myvar = subcol.operator("transform.transform", text="Shrinkfatten yolo")
myvar.mode = 'GPencil_Shrinkfatten'
myvar.gpencil_strokes = True

Investigating ...

Reiner's picture

I was at the right track. Problem was the mode letters. They need to be capital

myvar = subcol.operator("transform.transform", text="Shrinkfatten")
myvar.gpencil_strokes = True
myvar.mode = 'GPENCIL_SHRINKFATTEN'

Problem solved Smile

Fixed in keymap branch

https://github.com/Bforartists/Bforartists/commit/6e494284fb34f82846e480...

Reiner's picture

Status: Active » Closed (fixed)