Page 1 of 1

Shortcut key?

Posted: Tue Jan 03, 2023 8:09 pm
by striker2311
Hello Guys,
I want to ask if there's a shortcut or script to directly jump to bone layer (I'm using a lot of layers so it is becoming difficult for me to everytime to scroll up and select bone layer again and again :cry: ).
I think I have seen a discussion about jumping between layers but it seems like my memory blurred it.
So any help will be really a timesaver. :)

Re: Shortcut key?

Posted: Tue Jan 03, 2023 11:09 pm
by Greenlaw
Synthsin75's Layer Shortcuts and Stan's Layer Selection Buttons might help with that.

Layer Shortcuts lets you assign shortcuts to select specific layers or create buttons inside the Workspace to select layers. I like to use it the second way as shown in this video: Introduction to Layer Shortcuts. The one issue I've run into with this tool is that it breaks if you import a project using it. But if you don't plan on doing that, it's very useful.

Layer Selection Buttons is similar in concept but it uses buttons on the tool option bar instead and is easier to set up if you don't need/want the buttons as part of your SBD panel like with Layer Shortcuts. I think it has similar issues for importing though. (I should revisit this to be sure.)

Re: Shortcut key?

Posted: Tue Jan 03, 2023 11:16 pm
by Greenlaw
Oh, I just remembered a trick I used to do which does exactly what you want without using a third party script:

1. Create a Vector layer and place it directly under your Bone layer.
2. Draw a shape in the layer. This can be any shape; a circle or square will do fine as it will be used as a 'button'.
3. Open the layer properties for the vector layer and enable Don't Render This Layer. Close the window.

Now press and hold Shift+Alt and Right-click on your 'button' inside the Workspace. The Bone layer should get selected.

If you create a button layer for each character in the project, you can easily switch between them using Shift+Alt Right-clicking.

What this shortcut actually does is it selects the parent group of the artwork layer you click on, and in this case it's the shape's Bone layer. So long as the shape is visible and clickable, you can use it to select the Bone layer.

(Note: Thanks to Striker2311 for catching my error. It's been corrected.)

Re: Shortcut key?

Posted: Tue Jan 03, 2023 11:44 pm
by Greenlaw
I really wish I was able to do the above trick with a Switch Layer. Technically, it does work with a Switch Layer but because I always have multiple Group layers inside a Switch, when I click on a contained artwork layer I wind up selecting the artwork's group instead of the Switch Layer. :(

If I was able to select the Switch Layer this way, it would make using the Switch Selection window even better. For example, to load the mouth Switch into the Switch Selection Window, I could simply Shift+Alt Right-click the character's mouth. But this doesn't work when the mouth shapes are made of multiple layers each inside their own groups.

Hope we get another way to select Switch layers in a future release of Moho. This is basically what I'd been using Layer Shortcuts for.

Edit: Hmm...I just gave myself an idea for that. Will share if this works.

Re: Shortcut key?

Posted: Wed Jan 04, 2023 12:41 am
by SimplSam
striker2311 wrote: Tue Jan 03, 2023 8:09 pm ... I want to ask if there's a shortcut or script to directly jump to bone layer ...
There are 2 scripts that I know of that do that specifically:

- DV's SELECT PARENT BONE LAYER: https://lostmarble.com/forum/viewtopic.php?t=34399

- Danfield's Select Bonelayer: https://mohoscripts.com/script/am_select_bonelayer

The Danfield script/tool is simpler and does not collapse layers.

Re: Shortcut key?

Posted: Wed Jan 04, 2023 12:55 am
by Greenlaw
Thanks SimpleSam...I somehow missed seeing those.

Re: Shortcut key?

Posted: Wed Jan 04, 2023 3:26 pm
by striker2311
Greenlaw wrote: Tue Jan 03, 2023 11:16 pm Oh, I just remembered a trick I used to do which does exactly what you want without using a third party script:

1. Create a Vector layer and place it directly under your Bone layer.
2. Draw a shape in the layer. This can be any shape; a circle or square will do fine as it will be used as a 'button'.
3. Open the layer properties for the vector layer and enable Don't Render This Layer. Close the window.

Now press and hold Shift+Alt and click on your 'button' inside the Workspace. The Bone layer should get selected.

If you create a button layer for each character in the project, you can easily switch between them using Shift+Alt Clicking.

What this shortcut actually does is it selects the parent group of the artwork layer you click on, and in this case it's the shape's Bone layer. So long as the shape is visible and clickable, you can use it to select the Bone layer.
Thanks Greenlaw, you let me know a great thing here :D :D

Re: Shortcut key?

Posted: Wed Jan 04, 2023 3:31 pm
by striker2311
SimplSam wrote: Wed Jan 04, 2023 12:41 am
striker2311 wrote: Tue Jan 03, 2023 8:09 pm ... I want to ask if there's a shortcut or script to directly jump to bone layer ...
There are 2 scripts that I know of that do that specifically:

- DV's SELECT PARENT BONE LAYER: https://lostmarble.com/forum/viewtopic.php?t=34399

- Danfield's Select Bonelayer: https://mohoscripts.com/script/am_select_bonelayer

The Danfield script/tool is simpler and does not collapse layers.
Thanks SimplSam, I tried it now, it worked like a charm :D :D

Re: Shortcut key?

Posted: Wed Jan 04, 2023 4:37 pm
by striker2311
Greenlaw wrote: Tue Jan 03, 2023 11:16 pm Oh, I just remembered a trick I used to do which does exactly what you want without using a third party script:

1. Create a Vector layer and place it directly under your Bone layer.
2. Draw a shape in the layer. This can be any shape; a circle or square will do fine as it will be used as a 'button'.
3. Open the layer properties for the vector layer and enable Don't Render This Layer. Close the window.

Now press and hold Shift+Alt and click on your 'button' inside the Workspace. The Bone layer should get selected.

If you create a button layer for each character in the project, you can easily switch between them using Shift+Alt Clicking.

What this shortcut actually does is it selects the parent group of the artwork layer you click on, and in this case it's the shape's Bone layer. So long as the shape is visible and clickable, you can use it to select the Bone layer.

Thanks Greenlaw, for this, it is really good to even access even sub-bones.

Note- Clicking that greenlaw mentioned, is right-click of mouse.

Re: Shortcut key?

Posted: Wed Jan 04, 2023 5:28 pm
by Greenlaw
Oops! Thanks for catching that Striker2311. I'll correct my post right now. 😺