Page 1 of 1

TOOLS X LAYERS - Assign a layer to a tool and switch both with one click.

Posted: 12 Jan 2018, 19:48
by spyderheart
Hi all,

This custom panel evolved out of a discussion happening over here: viewtopic.php?f=34&t=11097

The panel can be used to store your most commonly used tools for quick access. In addition to loading a tool, each button can also automatically chose a specific layer. This can be very useful for constantly switching between a sketch layer and a paint layer, or from a storyboard panel layer to a note layer to name a couple of examples. The tool and layer can be switched simultaneously with a single click or better yet - a keystroke or wacom button (if you assign shortcuts to the tool buttons).

Questions and feedback welcome!
Enjoy

David

Re: TOOLS X LAYERS - Assign a layer to a tool and switch both with one click.

Posted: 14 Jan 2018, 22:51
by Svengali
Hi David,
Interesting experiment... I'm also very interested in your clever :?: (help) file, too, using the tv_GetString command, a very innovative solution for online documentation. I'm going to try a few of my own experiments with it for some things I'm working on. Thanks for showing the way. 8)

BTW, after I found that the \n line-wrap is available for insertion in various commands, I started adding multi-line Comments to some of my buttons - a very useful way to include roll-over instructions and info right inside the Button/Script tool! :idea:

Sven

Re: TOOLS X LAYERS - Assign a layer to a tool and switch both with one click.

Posted: 15 Jan 2018, 02:23
by spyderheart
Thanks Sven,
I really just needed a way for users to copy/paste some text - which you can't do with tv_warn. Of course having everything aligned to the left is a nice perk too ;)
D

Re: TOOLS X LAYERS - Assign a layer to a tool and switch both with one click.

Posted: 15 Jan 2018, 10:50
by Sewie
This is a great idea that is going to be very helpful. Thanks for sharing, David!

Re: TOOLS X LAYERS - Assign a layer to a tool and switch both with one click.

Posted: 15 Jan 2018, 21:34
by spyderheart
This is a great idea that is going to be very helpful. Thanks for sharing, David!
Thanks Sewie! Glad you like it.

Re: TOOLS X LAYERS - Assign a layer to a tool and switch both with one click.

Posted: 15 Jan 2018, 21:38
by spyderheart
FYI everybody: I'll be updating it at some point so let me know what it needs.

You may notice that the target layer setting is not remembered from session to session. Fixing this is a priority for the next release but luckily it's super quick to re-assign the layer on the fly so it shouldn't slow anyone down much :)

Re: TOOLS X LAYERS - Assign a layer to a tool and switch both with one click.

Posted: 17 Jan 2018, 11:30
by daninski
I like the sound of this! So I can set new animation layers to always use a blue pencil, new clean up layers to always use black pencil, and new colour layers to always be a watercolour?

I'll have a good look at this before my next job.

Re: TOOLS X LAYERS - Assign a layer to a tool and switch both with one click.

Posted: 17 Jan 2018, 13:52
by spyderheart
I like the sound of this! So I can set new animation layers to always use a blue pencil, new clean up layers to always use black pencil, and new colour layers to always be a watercolour?
Similar but, not quite. You set it up so that whenever you select the blue pencil, it chooses an animation layer. Furthemore, you have to tell it exactly which layer. Each tool can have a different layer connection for each clip.

What your suggesting is the inverse - to select the layer and automatically switch the tool. That's also a great idea but I think a lot harder to achieve with scripting. Not impossible but not what the script currently does.

Play around with it though. I think you'll find that for practical purposes it comes close to (i.e it will save you as much time as...) the way you're thinking of it.