Is there a quick way to create multiple layers easily from a single layer. For example, if I set up a base layer with whatever on it and then I want to make 40 copies of that layer, is there a quicker way than going Layer->DuplicateCurrentLayer 40 times
Hi, honestly, I wouldn't want to put you to the trouble, the brute force method, while exacting, is currently getting me by; I have to rename the layers by hand anyway. I am creating animations at the moment, pretty much frame by frame, and I would post more details but they are commercial; however, after the first 2 are published, which will be in a week or two, I won't mind putting more info up or being more open in my discussion. My current method is to create a static or mostly static background on a base layer and then to replicate subsequent layers that I hand adjust. When I am finished, I export to png and load into gimp to create a gif, and then from there, where needed, I use ffmpeg.
We spoke in another thread about the flatten thing. I tried that on two files, one got bigger, and the other changed but not in a good way. As I said, I am more than happy to provide samples for further discussion after the animations are released. With larger file-sizes, and as a cpu strain workaround, I have been breaking the frame-sets down into smaller files, so instead of one file with 200 layers/frames, I have reduced until the load on my old laptop is not so dire, and depending on the amount of filters in play, the files are down to between 20 and 40 layers/frames. I have found that screen magnification is directly proportional to cpu load, and when I don't need to see what is happening to the image, I have been reducing the image to the size of a postage stamp, especially when working in the dialog editor thingy.
Cheers for this. Strangely, I was thinking about macros and Inkscape just last week. Inkscape has gone from being a peripheral, occasionally used program, to being core to the stuff I do, and I have been thinking that when time allows, I might look into the coding aspect.
The first time I used Inkscape, I had no idea what it was. I am an amateur guitarist who suffers from tinnitus. and i spent about 8 years designing a filter/equalisation system for my guitar/amp so I could get the tone i like at the volume level of an acoustic guitar rather than at ultra high, valve amp, velocity+ levels, and when i moved from the test circuits, i decided to use perfboards; and to arrange the components, i was originally using an Excel spreadsheet that did not take long to look like a game of battleship rather than a perfboard representation, and after a web search for something better, I found Inkscape, and went on to create a perfboard on one layer, and I made up components, caps and resistors etc, I could drag around until i got everything to fit right. That was 10 or more years ago. And when I came to design the covers for my books a few years back, I tried all sorts of drawing programs, and again, I came back to Inkscape. And now, I am creating frame animations with it.
Is there a quick way to create multiple layers easily from a single layer. For example, if I set up a base layer with whatever on it and then I want to make 40 copies of that layer, is there a quicker way than going Layer->DuplicateCurrentLayer 40 times
I don't think there is an easy way to do this from the GUI.
In an extension, it's very simple: layer.duplicate()
I wrote an extension called 'Object to New Layer'
If it's something you want, I will see if I can add it.
Hi, honestly, I wouldn't want to put you to the trouble, the brute force method, while exacting, is currently getting me by; I have to rename the layers by hand anyway. I am creating animations at the moment, pretty much frame by frame, and I would post more details but they are commercial; however, after the first 2 are published, which will be in a week or two, I won't mind putting more info up or being more open in my discussion. My current method is to create a static or mostly static background on a base layer and then to replicate subsequent layers that I hand adjust. When I am finished, I export to png and load into gimp to create a gif, and then from there, where needed, I use ffmpeg.
We spoke in another thread about the flatten thing. I tried that on two files, one got bigger, and the other changed but not in a good way. As I said, I am more than happy to provide samples for further discussion after the animations are released. With larger file-sizes, and as a cpu strain workaround, I have been breaking the frame-sets down into smaller files, so instead of one file with 200 layers/frames, I have reduced until the load on my old laptop is not so dire, and depending on the amount of filters in play, the files are down to between 20 and 40 layers/frames. I have found that screen magnification is directly proportional to cpu load, and when I don't need to see what is happening to the image, I have been reducing the image to the size of a postage stamp, especially when working in the dialog editor thingy.
There is another option:
Scott Pakin wrote this extension https://inkscape.org/~pakin/%E2%98%85simple-inkscape-scripting
To allow users to do scripting in Inkscape.
However it does also allow for the execution of standard python code too :)
If you select a layer in the layers / object panel
This code pasted into the 'Python Code' window will duplicate the layer 40 times.
current_layer = svg_root.get_current_layer()
for count in range(40):
current_layer.duplicate()
Please note the last line (current_layer...) has a tab to the left which is required.
Scott's extension appears under Extensions>Render>Simple Inkscape Scripting
Cheers for this. Strangely, I was thinking about macros and Inkscape just last week. Inkscape has gone from being a peripheral, occasionally used program, to being core to the stuff I do, and I have been thinking that when time allows, I might look into the coding aspect.
The first time I used Inkscape, I had no idea what it was. I am an amateur guitarist who suffers from tinnitus. and i spent about 8 years designing a filter/equalisation system for my guitar/amp so I could get the tone i like at the volume level of an acoustic guitar rather than at ultra high, valve amp, velocity+ levels, and when i moved from the test circuits, i decided to use perfboards; and to arrange the components, i was originally using an Excel spreadsheet that did not take long to look like a game of battleship rather than a perfboard representation, and after a web search for something better, I found Inkscape, and went on to create a perfboard on one layer, and I made up components, caps and resistors etc, I could drag around until i got everything to fit right. That was 10 or more years ago. And when I came to design the covers for my books a few years back, I tried all sorts of drawing programs, and again, I came back to Inkscape. And now, I am creating frame animations with it.