Default.xml - what line to add for drop shadow filter?

Post questions on how to use or achieve an effect in Inkscape.
Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

Default.xml - what line to add for drop shadow filter?

Postby Vectorator » Tue Mar 03, 2015 5:26 pm

Would someone be able to post the line that I should add to the default.xml file to make a shortcut key for the drop shadow filter?

Filers > Shadows and Glows > Drop Shadow

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

Re: Default.xml - what line to add for drop shadow filter?

Postby brynn » Wed Mar 04, 2015 8:19 am

You can't make a key shortcut for anything or everything. I think you can only make a custom shortcut key for something that already has a shortcut.

I could be wrong.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Default.xml - what line to add for drop shadow filter?

Postby ~suv » Wed Mar 04, 2015 8:45 am

Use the new built-in shortcut editor in Inkscape 0.91 (Edit > Preferences > Interface > Keyboard Shortcuts), enter 'Drop Shadow' into the search field. In the list below, you will then find two entries for the Drop Shadow filter effect under the item 'Filters', and can assign a custom keyboard shortcut to your liking.

Example code for what is added to the user's custom default.xml file (Shortcut used for the example: Shft+Ctrl+Alt+X):

Code: Select all

  <bind
     key="X"
     modifiers="Ctrl,Shift,Alt"
     action="org.inkscape.effect.filter.ColorDropShadow" />

(Tip: extensions and filter effects have verbs auto-generated based on their ids: this allows command line usage as well as assigning of custom keyboard shortcuts. You can get a list of all verbs on the command line with

Code: Select all

inkscape --verb-list
Caveat: I don't know personally whether this works on Windows now, I vaguely recall we had a bug report that is was broken on Windows.)

Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

Re: Default.xml - what line to add for drop shadow filter?

Postby Vectorator » Wed Mar 04, 2015 1:28 pm

It's strange, when I try to edit the default.xml file it says please check if the file is open in another program. Even when I reboot then open it. Inkscape isn't open of course.


Return to “Help with using Inkscape”