DV_SOLO_Layer v2.1

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

DV_SOLO_Layer v2.1

Post by davoodice2 »

simply Toggle Solo selected layer.

DV_Toggle_solo_layer: for solo selected layer. It preserves current states of layers visibility.
DV_Remove_Visibility_Sets: for Remove script stuff from file.

:roll:

Download
https://www.mediafire.com/file/9n0ymit3 ... 1.zip/file
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
Daxel
Posts: 996
Joined: Wed Mar 27, 2019 8:34 pm

Re: DV_SOLO_Layer v2.1

Post by Daxel »

I think I know what you mean: when using alt-click to switch to view only selected layer, and then do the same to switch back, you loose the previous view layer settings making the feature undesirable to use. This is your fix to that problem right? Thanks for sharing!
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV_SOLO_Layer v2.1

Post by davoodice2 »

Daxel wrote: Wed Nov 03, 2021 7:57 pm I think I know what you mean: when using alt-click to switch to view only selected layer, and then do the same to switch back, you loose the previous view layer settings making the feature undesirable to use. This is your fix to that problem right? Thanks for sharing!
Yes and use alt and click affect on current level of parent. So you have to disable visibility of other layers manually.
But now by run this script every other layers will be hide.
If run it again all layers that were visibile before, will be show again.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV_SOLO_Layer v2.1

Post by davoodice2 »

Also with first run a layer comp be created to back and forth between solo and unsolo.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
Daxel
Posts: 996
Joined: Wed Mar 27, 2019 8:34 pm

Re: DV_SOLO_Layer v2.1

Post by Daxel »

I tried it briefly today and it worked fine, pretty cool. Thanks for sharing!

Edit: the "Remove visibility sets", how often do you use it? Maybe I should put it on the menu scripts instead?
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV_SOLO_Layer v2.1

Post by davoodice2 »

Daxel wrote: Sun Nov 14, 2021 7:44 pm I tried it briefly today and it worked fine, pretty cool. Thanks for sharing!

Edit: the "Remove visibility sets", how often do you use it? Maybe I should put it on the menu scripts instead?
Script creates a comp to use in function. This script delete that comp and brings layer states to before use script.i prefer buttons for ability to assign shortkey
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
EricTheFish
Posts: 85
Joined: Thu Jun 15, 2017 4:37 pm
Location: Lymm, UK

Re: DV_SOLO_Layer v2.1

Post by EricTheFish »

Is it possible to mod this script to SOLO multiple selected layers? This would be incredible!

Great script davoodice2, really useful! :)
EricTheFish
Artist, musician, animator, coder and dabbler in stuff
www.tech-nique.co.uk
User avatar
Greenlaw
Posts: 9269
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: DV_SOLO_Layer v2.1

Post by Greenlaw »

I typically use Layer Comps to do something like this but it sounds like your script simplifies the task by making it a toggle.

I like simpler! Especially for something I typically need only temporarily.

Will give DV_SOLO a try today davoodice2. Thanks for creating and sharing it. :)
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV_SOLO_Layer v2.1

Post by davoodice2 »

Greenlaw wrote: Mon Dec 27, 2021 7:19 pm I typically use Layer Comps to do something like this but it sounds like your script simplifies the task by making it a toggle.

I like simpler! Especially for something I typically need only temporarily.

Will give DV_SOLO a try today davoodice2. Thanks for creating and sharing it. :)
be careful ! after solo a layer if you create new layers they will be hide with next toggle! I will work on it later.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV_SOLO_Layer v2.1

Post by davoodice2 »

EricTheFish wrote: Mon Dec 27, 2021 6:02 pm Is it possible to mod this script to SOLO multiple selected layers? This would be incredible!

Great script davoodice2, really useful! :)
yes. I will work on that in my free time. thanks.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
Greenlaw
Posts: 9269
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: DV_SOLO_Layer v2.1

Post by Greenlaw »

davoodice2 wrote: Mon Dec 27, 2021 7:24 pm be careful ! after solo a layer if you create new layers they will be hide with next toggle! I will work on it later.
Ah! Thanks for the warning. Will watch out for that.
Post Reply