Shortcut key?

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
striker2311
Posts: 226
Joined: Wed Aug 26, 2020 3:55 pm

Shortcut key?

Post 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. :)
User avatar
Greenlaw
Posts: 10466
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Shortcut key?

Post 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.)
User avatar
Greenlaw
Posts: 10466
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Shortcut key?

Post 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.)
Last edited by Greenlaw on Wed Jan 04, 2023 5:30 pm, edited 5 times in total.
User avatar
Greenlaw
Posts: 10466
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Shortcut key?

Post 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.
Last edited by Greenlaw on Wed Jan 04, 2023 5:29 pm, edited 2 times in total.
User avatar
SimplSam
Posts: 1218
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Shortcut key?

Post 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.
Moho 14.3 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.3 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
User avatar
Greenlaw
Posts: 10466
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Shortcut key?

Post by Greenlaw »

Thanks SimpleSam...I somehow missed seeing those.
User avatar
striker2311
Posts: 226
Joined: Wed Aug 26, 2020 3:55 pm

Re: Shortcut key?

Post 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
User avatar
striker2311
Posts: 226
Joined: Wed Aug 26, 2020 3:55 pm

Re: Shortcut key?

Post 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
User avatar
striker2311
Posts: 226
Joined: Wed Aug 26, 2020 3:55 pm

Re: Shortcut key?

Post 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.
User avatar
Greenlaw
Posts: 10466
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Shortcut key?

Post by Greenlaw »

Oops! Thanks for catching that Striker2311. I'll correct my post right now. 😺
Post Reply