hi:
On Sun, 2017-06-18 at 16:54 +0200, Michael Soegtrop wrote:
> Dear Inkscape Team,
>
> my bool op LPE has classical bool operations suitable for closed
> paths
> and line cutting operations suitable for one open and one closed
> path. I
> wanted to adjust the options shown in the EnumParam depending on the
> path type, but couldn't find out how. Also it would be interesting to
> know if there is way to know when the path in a PathParam is set,
> because at this point I need to adjust the options shown. Otherwise I
> would make the decision on the main path and always require that the
> operand path is closed (and give a warning if not).
You need a header var "Geom:Pathvector older_pv" asigning it in the end
of "do_before effect" and finaly compare it with current path
You also need the definition of the header put the select widget to be
available in all LPE, for this you redefine the "effect::widget" like
in a lot of effects, perspective envelope, Laticce 2....
> Or do you think it makes more sense to have two LPEs, one classical
> bool
> LPE which only works for closed paths and one path trimming LPE to
> trim
> sets of open paths with a closed path. I think separating the two
> might
> be more obvious to the user.
Not sure [UX] team?
> Best regards,
>
> Michael
Chers
------------------------------------------------------------ ------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@...1656...784...sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel