Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save/read the tool(media) settings from SVG [feat. req.] #323

Open
devingfx opened this issue Jan 19, 2025 · 8 comments
Open

Save/read the tool(media) settings from SVG [feat. req.] #323

devingfx opened this issue Jan 19, 2025 · 8 comments

Comments

@devingfx
Copy link
Contributor

devingfx commented Jan 19, 2025

It would be nice to be able to save or set before hand the pressure/speed/depth on the document or each pathes, for not having to remember it.
By ex: When designing drawings for the use of Cameo with pens, people may have different groups of pathes to match pen colors & thickness already, so knowing what pen to use you could have pressure/speed presets for it (ex: cameo pens behave not the same as custom pen holder).

SVG can have additional attributes on nodes, or even CSS styles with classes or custom properties, so the data can be saved in the document, then the py path converter/parser could get the settings from there.

I suppose, the sento popup would have a "use objects media settings" checkbox, and a new extension+popup would have the role of setting/editing the values for people to avoid using the inkscape's XML editor...

Thanks for all this extension BTW !

@t0b3
Copy link
Collaborator

t0b3 commented Jan 19, 2025

@devingfx have you tried Silhouette Multi already? There exists the possibility to store and reuse frequently used named presets (each preset allows using per color specific settings: pen holder, speed, pressure, etc.). So this makes it reusable even among multiple SVG 👍
you are welcome to try and have a look and report back remaining ideas... 😄

@devingfx
Copy link
Contributor Author

yeah, hmm, I tried multi, I've got this "doing nothing" bug though...

So obviously I couldn't know about all this preset stuffs you speak about, I apologize so if this is already implemented somewhere..

I'll wait/watch for multi to work again and try ;)

@t0b3
Copy link
Collaborator

t0b3 commented Jan 20, 2025

@devingfx multi action works pretty well, though install instructions may need some points be mentioned explicitly.
Do you have wx module installed in your Python env which is beging used by inkscape?

@t0b3
Copy link
Collaborator

t0b3 commented Jan 20, 2025

I.e. is there and output if you check that box: Wait for cutter to finish...

<param name="block" type="bool" gui-text="Wait for cutter to finish before returning to Inkscape">false</param>

@devingfx
Copy link
Contributor Author

devingfx commented Jan 21, 2025

I read some other issues on multi not working, I had the needed deps.
It look like the MultiFrame only pops when block is checked in "Debugging Settings" dialog, otherwise nothing happen when Apply is clicked...

So I managed to use multi finally ! \o/

Here are my review

This issue's concern:

  • It look like autosaved colors settings are saved by color index and not by color:
    • I drawn 30 lines with strokes shaded in 30 different grays to be able to test the 30 values for pen's speed, so 1st color have speed 1, 2nd color have speed 2, and so on > it was OK
    • Next day in a new document, I drawn 3 shapes, 1 red, 1 green, 1 blue, then the MultiFrame dialog kept the 3 first settings for the 3 1st shaded greys from last session but applied to the red, green and blue respectively (aka, settings for a pen at speed 1, 2, then 3)
  • It could be interesting to be able to apply the same settings to all colors first, and then change only few settings for each colors (like a button "Copy this settings to all colors").

    Ex: Having a drawing with 30 colors to setup 30 different pen's speed with the same pressure, means having to set up tool: pen, media: Pen, pressure: 15, speed: X 30 times, what a pain!! Instead setting 1st time these setting and "copy to all colors" would means only setting the speed input 30 times... (I'm ok to say this usage is quite unusual tough).

  • It could be good to being able to delete completely a color from the list, like the "no color" one for it to not being saved into a preset.

    It would manage also to don't plot something we had forgotten to hide beforehand

  • It would be nice to have the color value in text in the color column, either hex, or even better the authored color format (rgb/hsl/...)
  • Some notebook pages are not color related
    • Regmarks are more document related that color related
    • Log & dump params/files are more global than color related! It's even worse if you setup log files for 1 color and forget to set it for the other colors, you will have partial logs...
    • About

Presets

  • It's a bit weird the way when loading a preset it tries to sync actual SVG colors to saved colors:
    • there is no way of recalling the ones colors actually saved to maybe assign it to the actual drawing.
    • there few chances that color correpondance works! Imagine 1st SVG color is to match with 2nd preset color and 2nd SVG with 1st preset, user will have to manually re-set everything still.
    • Isn' it possible to have unused colors still being added? Like with the resulting actions containing no commands? Or maybe add it in the list being unchecked.

Additional feat.

  • Maybe a ckeckbox to be able to have a pause between actions

    like to be able to shedule several tools (like red pen, black pen, then cut) but have a popup with a "continue/cancel" buttons between actions to be able to physically change the tool. Right now instead between each actions, we have to 1) close output popup, 2) click apply again on debugging frame 3) uncheck all colors but 1 (don't make mistake on the ones color already plotted ^^) 4) click execute

Don't hesitate to ask questions if I wasn't enough clear is these descriptions :)

I would be happy to discuss/design new UI implementing the concept of saving tool settings into SVG, with people interested by this idea, and then maybe give dev try... but not this week, I have drawings to finish 1st :)

@t0b3
Copy link
Collaborator

t0b3 commented Jan 21, 2025

Just for the very first part...
Not sure: you missed some deps first? And with block false those didnt show? Can you retry if my latest commits would catch this?

@devingfx
Copy link
Contributor Author

Let's continue this topic in #213 ;)

@TapuCosmo
Copy link
Contributor

See #308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants