DV SELECT PARENT BONE LAYER V 1.8

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
davoodice2
Posts: 387
Joined: Tue Jun 15, 2021 1:14 pm

DV SELECT PARENT BONE LAYER V 1.8

Post by davoodice2 »

quickly select neatest parent bone. best usage is if you assign a shortcut for it.
go back to bone layer and continue animate quickly.

download https://www.mediafire.com/file/x4iza6i7 ... 8.zip/file
1.7
- change algorithm
- auto collapse
- Auto focus
1.8
- bug fix
Last edited by davoodice2 on Thu Oct 28, 2021 11:22 am, edited 9 times in total.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Re: DV SELECT PARENT BONE LAYER V 1.0

Post by funksmaname »

Brilliant, thank you! will give it a whirl :)

edit:
Works great on direct level - can it look deeper? :idea:
User avatar
davoodice2
Posts: 387
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV SELECT PARENT BONE LAYER V 1.0

Post by davoodice2 »

funksmaname wrote: Wed Sep 01, 2021 10:36 pm Brilliant, thank you! will give it a whirl :)

edit:
Works great on direct level - can it look deeper? :idea:
if you run tool again it goes one level up.
Explain more clearly if I do not understand what you mean
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Re: DV SELECT PARENT BONE LAYER V 1.0

Post by funksmaname »

I wondered if it was possible to keep going up a chain until you hit a bone layer, regardless of how deep you already are (a sub folders child layer doesn't go up to the bone) :)
User avatar
davoodice2
Posts: 387
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV SELECT PARENT BONE LAYER V 1.0

Post by davoodice2 »

funksmaname wrote: Thu Sep 02, 2021 9:22 pm I wondered if it was possible to keep going up a chain until you hit a bone layer, regardless of how deep you already are (a sub folders child layer doesn't go up to the bone) :)
My main goal in this script was to go back to the main layer with one click when we go to the layers inside the rig and continue the animation or rig without worrying that the wrong layer will be selected.
but we can add a option for search more to find Rig layers outside of top layer.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
davoodice2
Posts: 387
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV SELECT PARENT BONE LAYER V 1.0

Post by davoodice2 »

davoodice2 wrote: Wed Sep 01, 2021 8:36 am quickly select neatest parent bone. best usage is if you assign a shortcut for it.
go back to bone layer and continue animate quickly.

download https://www.mediafire.com/file/9eisuqtp ... r.zip/file
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
davoodice2
Posts: 387
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV SELECT PARENT BONE LAYER V 1.0

Post by davoodice2 »

funksmaname wrote: Thu Sep 02, 2021 9:22 pm I wondered if it was possible to keep going up a chain until you hit a bone layer, regardless of how deep you already are (a sub folders child layer doesn't go up to the bone) :)
Update 1.4
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
davoodice2
Posts: 387
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV SELECT PARENT BONE LAYER V 1.0

Post by davoodice2 »

funksmaname wrote: Thu Sep 02, 2021 9:22 pm I wondered if it was possible to keep going up a chain until you hit a bone layer, regardless of how deep you already are (a sub folders child layer doesn't go up to the bone) :)
I think it work as you told ,now.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
Daxel
Posts: 1080
Joined: Wed Mar 27, 2019 8:34 pm

Re: DV SELECT PARENT BONE LAYER V 1.8

Post by Daxel »

Thank you! I started using it, I love to go back to the bone layer so easily and being able to press it again to go another level up is great but it automatically collapses the children of the bone layer. I'm not sure if that is intended, I usually prefer to have the layers visible for the same reason that I like this script, to be able to move quicker between layers.
User avatar
EricTheFish
Posts: 91
Joined: Thu Jun 15, 2017 4:37 pm
Location: Lymm, UK

Re: DV SELECT PARENT BONE LAYER V 1.8

Post by EricTheFish »

Daxel wrote: Mon Nov 15, 2021 11:46 pm but it automatically collapses the children of the bone layer.
Agreed, I prefer to keep the layer stack open too. I commented out the "Expand" code on lines 46,51 and 86. It works like a dream for me! :)

Great little tool, thanks for sharing davoodice2.
EricTheFish
Artist, musician, animator, coder and dabbler in stuff
www.tech-nique.co.uk
User avatar
ITAK
Posts: 15
Joined: Sun Mar 18, 2012 7:18 pm
Location: Russia
Contact:

Re: DV SELECT PARENT BONE LAYER V 1.8

Post by ITAK »

Thank you, davoodice2! Very, very useful tool!
User avatar
davoodice2
Posts: 387
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV SELECT PARENT BONE LAYER V 1.8

Post by davoodice2 »

EricTheFish wrote: Thu Dec 16, 2021 7:15 pm
Daxel wrote: Mon Nov 15, 2021 11:46 pm but it automatically collapses the children of the bone layer.
Agreed, I prefer to keep the layer stack open too. I commented out the "Expand" code on lines 46,51 and 86. It works like a dream for me! :)

Great little tool, thanks for sharing davoodice2.
simple and easy! Enjoy
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
davoodice2
Posts: 387
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV SELECT PARENT BONE LAYER V 1.8

Post by davoodice2 »

ITAK wrote: Thu Dec 16, 2021 9:11 pm Thank you, davoodice2! Very, very useful tool!
your welcome. i'm glad to hear this
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
davoodice2
Posts: 387
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV SELECT PARENT BONE LAYER V 1.8

Post by davoodice2 »

Daxel wrote: Mon Nov 15, 2021 11:46 pm Thank you! I started using it, I love to go back to the bone layer so easily and being able to press it again to go another level up is great but it automatically collapses the children of the bone layer. I'm not sure if that is intended, I usually prefer to have the layers visible for the same reason that I like this script, to be able to move quicker between layers.
simply comment lines contain expand command with insert -- in line start
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
Daxel
Posts: 1080
Joined: Wed Mar 27, 2019 8:34 pm

Re: DV SELECT PARENT BONE LAYER V 1.8

Post by Daxel »

davoodice2 wrote: Thu Dec 16, 2021 10:01 pm
simply comment lines contain expand command with insert -- in line start
Thanks, it worked.
I'm a programmer now 8)
Post Reply