what is secondary selection?

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

what is secondary selection?

Post by davoodice2 »

hi
any body can help please?
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
synthsin75
Posts: 10008
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: what is secondary selection?

Post by synthsin75 »

It's when you use ctrl or shift to select more than one layer at a time. There's the current layer, moho.layer, which is the last layer selected, and every other selected layer will return true for secondary selection.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: what is secondary selection?

Post by davoodice2 »

synthsin75 wrote: Tue Nov 02, 2021 9:55 pm It's when you use ctrl or shift to select more than one layer at a time. There's the current layer, moho.layer, which is the last layer selected, and every other selected layer will return true for secondary selection.
thanks
how I get second or and every other selected layer ?
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
synthsin75
Posts: 10008
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: what is secondary selection?

Post by synthsin75 »

davoodice2 wrote: Wed Nov 03, 2021 12:48 am how I get second or and every other selected layer ?
Scan through the whole document checking for secondary selection, as per: https://mohoscripting.com/snippets/1
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: what is secondary selection?

Post by davoodice2 »

synthsin75 wrote: Wed Nov 03, 2021 2:19 am
davoodice2 wrote: Wed Nov 03, 2021 12:48 am how I get second or and every other selected layer ?
Scan through the whole document checking for secondary selection, as per: https://mohoscripting.com/snippets/1
thank you so much
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
Post Reply