Search found 9 matches

by Antony.Marshall
Fri Jun 10, 2016 9:53 am
Forum: Programming
Topic: Remove all transforms whilst keeping in-place
Replies: 12
Views: 12346

Re: Remove all transforms whilst keeping in-place

apply-transforms? Fantastic, that appears to work! Although it does move all my text, I guess the algorithm doesn't account for text. Gotta find an extension that will convert my text to paths first (like exporting to eps does), then I can apply this extension. Much, much, much faster than running a...
by Antony.Marshall
Mon Jun 06, 2016 9:18 am
Forum: Programming
Topic: Remove all transforms whilst keeping in-place
Replies: 12
Views: 12346

Re: Remove all transforms whilst keeping in-place

Here's a link to one of my sheets, that's been drawn and packed using the python extension I'm writing. https://www.dropbox.com/s/awe32p3c8xdfbs8/LaserBed.svg?dl=0 I tried selecting everthing in that file with Edit->Select All in All Layers, then Layer->Move Selection To Layer, and selecting a diffe...
by Antony.Marshall
Fri Jun 03, 2016 11:41 am
Forum: Programming
Topic: Remove all transforms whilst keeping in-place
Replies: 12
Views: 12346

Re: Remove all transforms whilst keeping in-place

I tried that, it was already set to optimized. After ungrouping everything, moving objects doesn't appear to remove the transforms from any arcs or curves, and the straight line paths already had their transforms removed when the ungrouping occurred. But the objects in my scene are grouped by defaul...
by Antony.Marshall
Fri Jun 03, 2016 8:17 am
Forum: Programming
Topic: Remove all transforms whilst keeping in-place
Replies: 12
Views: 12346

Re: Remove all transforms whilst keeping in-place

Hi, Yes, my extension uses simplepath and simpletransform, as I built it from examples online that used these. No reason not to mention the other software, it's Vectric Software's "Cut2D", it's for my laser cutter. Another thing I'm going to try is downloading a command-line converter, see...
by Antony.Marshall
Thu Jun 02, 2016 9:52 am
Forum: Programming
Topic: Remove all transforms whilst keeping in-place
Replies: 12
Views: 12346

Re: Remove all transforms whilst keeping in-place

Moving to a new layer didn't seem to help. I wrote a batch file to do the conversion for me: "C:\Program Files\Inkscape\inkscape" %1 --verb EditSelectAllInAllLayers --verb SelectionUnGroup --verb EditDeselect --select "circle1" --verb EditSelectSameObjectType --verb SelectionSimp...
by Antony.Marshall
Wed Jun 01, 2016 4:40 pm
Forum: Programming
Topic: Access to menus from python extension
Replies: 5
Views: 2957

Re: Access to menus from python extension

Ok then. When using the verbs to do actions from the command line, is there any way to pass any other parameters? I can call --verb EditSelectAllInAllLayers, but what I really want it to do is EditSelectSameObjectType where the object type is a circle (i'm guessing that counts as an 'arc'?). And can...
by Antony.Marshall
Mon May 30, 2016 11:33 am
Forum: Programming
Topic: Remove all transforms whilst keeping in-place
Replies: 12
Views: 12346

Remove all transforms whilst keeping in-place

Hey, Due to a bug in another piece of software I'm using, when I export my designs as PDF or EPS files, I don't want to store any transforms for any objects. For my objects that are predominantly paths, this seems to be easy enough - I ungroup everything and it removes the transforms from the group ...
by Antony.Marshall
Mon May 30, 2016 11:26 am
Forum: Programming
Topic: Access to menus from python extension
Replies: 5
Views: 2957

Re: Access to menus from python extension

Well, that seems like a really difficult way of doing things.
I've got a separate issue which may need this to solve, but may not be easily solvable anyway, I'll open a new topic about it.
by Antony.Marshall
Wed May 25, 2016 1:06 pm
Forum: Programming
Topic: Access to menus from python extension
Replies: 5
Views: 2957

Access to menus from python extension

Hi, I'm writing an extension and I wanted to know if it's possible to call a function from Inkscape's menu from within my python code? So, if I've just created a text object like so: line_style = {'font-size': str(text_height) + 'px', 'font-style':'normal', 'font-weight': 'normal', 'fill': '#F6921E'...

Go to advanced search