Skip to main content
7 events
when toggle format what by license comment
Jul 28, 2023 at 19:00 vote accept White Raven
Jul 2, 2023 at 7:31 comment added Markus von Broady @RobinBetts it is "compression over clarity", just because it's a shift+f4 technique, could write an operator, or if OP wants to select in all gpencil objects, layers, frames, could loop through them, but for now OP hasn't commented.
Jul 2, 2023 at 6:18 comment added Robin Betts +1 ... but .. is this compression over clarity? Not my area. I defer to your greater experience. Is there a more readable way of expressing this, though? (A bit rich, from me, I used to script Perl quite a lot)
Jul 1, 2023 at 19:59 comment added Gorgious Hehe thanks for the explanation. Every time I think I understand but when I stumble upon having to do it from scratch a few months later I always get it wrong. Maybe with this method it'll stick :p
Jul 1, 2023 at 15:31 comment added Markus von Broady @Gorgious it seems like it should be reversed to resemble the ordering in a human language, but it's simple when you think in terms of normal loops: for s in C.editable_gpencil_strokes: for p in s.points: - this is how you would normally loop, and you put it in the same order to the comprehension/generator, just without the colons, and at the very start you add the evaluated result for each step (here just p).
Jul 1, 2023 at 15:22 comment added Gorgious Argh I'll never understand nested for loops syntax
Jul 1, 2023 at 14:20 history answered Markus von Broady CC BY-SA 4.0