Looking for a way to toggle layer visibility trough names

A forum dedicated to George scripting questions
Post Reply
User avatar
Lukas
Posts: 526
Joined: 14 Jan 2011, 11:15
Contact:

Looking for a way to toggle layer visibility trough names

Post by Lukas »

I'm looking for a way to create some buttons to toggle layer visibility with buttons that check out layer names.

If you have a project with layers like this:
- STB_shot11
- Boy
- Boy arm
- Boy_color
- Girl
- Girl_color
- table
- BG

I'd love to create a button that does:
- Show storyboard (looks for any layer name containing "STB" and turns their visibility on)
- Hide storyboard (same thing, but hides)
- Show color (turns visibility on for all layers containing "color" and makes them visible)
- Hide color
- Show Boy (shows layer "Boy" and "Boy arm" etc, but doesn't show "Boy_color")
- Hide Boy (hides any layers containing 'boy', so all boy line art AND colour would be hidden)
- Show Girl
- Hide Girl

Of course these buttons would have to be project specific, but I'd use them often.

Is this doable with george? Has anyone done something like it I could check out? (I'm really new to george scripting) Any help is appreciated
  • Lukas Sketch Panel
  • TVPaint Pro 11.7.3
  • MacBook Pro 2018 macOS Ventura 13.4.1 + PC Windows 10
  • Wacom Cintiq 27QHD + Wacom Intuos4
  • YouTube.com/@ClubBaboo
  • YouTube.com/@FrameOrder
Post Reply