Inserting pre-defined objects with keyboard shortcuts?

Post questions on how to use or achieve an effect in Inkscape.
Katz
Posts: 6
Joined: Thu Aug 28, 2014 8:00 pm

Inserting pre-defined objects with keyboard shortcuts?

Postby Katz » Thu Aug 28, 2014 8:54 pm

Hi,

I use Inkscape for dog agility course creator. I have created a course template with different obstacles that are used on track. Here is an example of a track I created:

https://drive.google.com/file/d/0B-DgeR ... sp=sharing

I hate using mouse and would like to use keyboard as much as possible, so is it possible to assign keyboard shortcuts for inserting a new obstacle (predrawn object) instead of dragging one from the side and possible using copy-and-paste for it?

I would very much prefer using some keyboard combination for inserting new obstacles on course for example like this:

SHIFT-CTRL-1 = JUMP
SHIFT-CTRL-2 = DOG WALK
SHIFT-CTRL-3 = A-FRAME
...

Thanks in advance
-Katz
----------
EDIT: too long subject line, shortened it

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Inserting pre-defined objects with keyboard shortcuts?

Postby brynn » Sat Aug 30, 2014 1:54 am

Copy - Ctrl c
Paste - Ctrl v

If you place the mouse pointer (Selection tool) on the place where you want the object, when you do Ctrl v, it will paste the object right where the mouse pointer is.

Might be hard to be precise that way, though. If you want the objects to be placed on some precise x,y position....I'm thinking that might take a script (which I have no idea how to write). Or maybe there's some way to do it with the command line?

Katz
Posts: 6
Joined: Thu Aug 28, 2014 8:00 pm

Re: Inserting pre-defined objects with keyboard shortcuts?

Postby Katz » Sat Aug 30, 2014 2:42 am

Thanks brynn, but that wasn't what I was asking for.

What I want to do is to have certain keyboard shortcuts inserting certain pre-defined objects. Like for exmple this:

SHIFT-CTRL-1 = Insert obstacle : JUMP
SHIFT-CTRL-2 = Insert obstacle : DOG WALK
SHIFT-CTRL-3 = Insert obstacle : A-FRAME
...

-Katz

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Inserting pre-defined objects with keyboard shortcuts?

Postby tylerdurden » Sat Aug 30, 2014 3:12 am

No hotkey macros within inkscape, but maybe via third-party program (e.g. autohotkey).

There are keyboard shortcuts for import... in Windows they default to the last used folder dialogue. Tab and Shift-Tab can navigate into the folder and arrow keys can select the item from the list. Not a hotkey in itself, but no mouse and a macro recorder app could possibly provide a hotkey solution.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Katz
Posts: 6
Joined: Thu Aug 28, 2014 8:00 pm

Re: Inserting pre-defined objects with keyboard shortcuts?

Postby Katz » Sat Aug 30, 2014 3:24 am

Thanks for the reply. I was afraid there was no real solution for it in Inkscape.


Return to “Help with using Inkscape”