*NEW* Switch Icons (updated 12/13/21)

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

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
synthsin75
Posts: 9973
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: *NEW* Switch Icons (updated 12/13/21)

Post by synthsin75 »

My kneejerk response was to say yes, but after looking at the relevant API, I can only use PNG for the image buttons and rendering PNGs by script defaults to transparency...which is the background you're seeing.

BUT, you can just put a background layer of your desired color below your layers, and this will render. Easy peasy.
User avatar
Greenlaw
Posts: 9269
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: *NEW* Switch Icons (updated 12/13/21)

Post by Greenlaw »

Sounds good! I often place a temp BG in my projects anyway. Thanks for the tip Wes!
User avatar
lucasfranca
Posts: 128
Joined: Sat Oct 07, 2017 11:47 pm

Re: *NEW* Switch Icons (updated 12/13/21)

Post by lucasfranca »

The link is broken!
An old guy [since 1983] who was raised in front of the TV.
Passionate about animation, after getting old, he decides to make it his hobby.

I share tutorials, reviews, tips and tricks from this vast world of animation on my channel.

https://youtube.com/animai2D
User avatar
synthsin75
Posts: 9973
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: *NEW* Switch Icons (updated 12/13/21)

Post by synthsin75 »

lucasfranca wrote: Fri Oct 21, 2022 10:23 pm The link is broken!
Works here, on Firefox, Opera, and Edge.
User avatar
hayasidist
Posts: 3525
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: *NEW* Switch Icons (updated 12/13/21)

Post by hayasidist »

lucasfranca wrote: Fri Oct 21, 2022 10:23 pm The link is broken!
and ok here too
Ophiuchus
Posts: 2
Joined: Thu Mar 14, 2024 11:08 am

Re: *NEW* Switch Icons (updated 12/13/21)

Post by Ophiuchus »

Hello. Thank you very much for this script, it is great. Lamentably it is not working on Moho Pro 14.1. Is there any chance to update it or point us how to do it?
Thanks :mrgreen:
User avatar
synthsin75
Posts: 9973
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: *NEW* Switch Icons (updated 12/13/21)

Post by synthsin75 »

Ophiuchus wrote: Thu Mar 14, 2024 11:12 am Hello. Thank you very much for this script, it is great. Lamentably it is not working on Moho Pro 14.1. Is there any chance to update it or point us how to do it?
Thanks :mrgreen:
Link updated for v14.1 fix: https://dl.dropboxusercontent.com/s/2wq ... s.zip?dl=0
User avatar
Greenlaw
Posts: 9269
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: *NEW* Switch Icons (updated 12/13/21)

Post by Greenlaw »

Thank you, Wes! I was about to use Switch Icons on a project in 14.1, so this is perfect timing! :D
Ophiuchus
Posts: 2
Joined: Thu Mar 14, 2024 11:08 am

Re: *NEW* Switch Icons (updated 12/13/21)

Post by Ophiuchus »

Thank you so much!!!
User avatar
lucasfranca
Posts: 128
Joined: Sat Oct 07, 2017 11:47 pm

Re: *NEW* Switch Icons (updated 12/13/21)

Post by lucasfranca »

Thank you so much!
An old guy [since 1983] who was raised in front of the TV.
Passionate about animation, after getting old, he decides to make it his hobby.

I share tutorials, reviews, tips and tricks from this vast world of animation on my channel.

https://youtube.com/animai2D
Post Reply