Fix incorrect red crosses in layer panel?

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: 10267
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Fix incorrect red crosses in layer panel?

Post by synthsin75 »

Lukas, I've used this hack in other scripts, and it seems to work for this too...from a button/menu script.

Code: Select all

	moho.document:PrepUndo(moho.layer, true)
	moho.document:Undo()
So you can loop through and do this for all the relevant layers in the document.
User avatar
Lukas
Posts: 1336
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: Fix incorrect red crosses in layer panel?

Post by Lukas »

synthsin75 wrote: Tue Mar 09, 2021 5:06 pm Lukas, I've used this hack in other scripts, and it seems to work for this too...from a button/menu script.

Code: Select all

	moho.document:PrepUndo(moho.layer, true)
	moho.document:Undo()
So you can loop through and do this for all the relevant layers in the document.
YES, WES! 💪

Thank you so much, that absolutely works!

(Also, thanks hayasidist for thinking along)
User avatar
synthsin75
Posts: 10267
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Fix incorrect red crosses in layer panel?

Post by synthsin75 »

Lukas wrote: Tue Mar 09, 2021 8:57 pm YES, WES! 💪

Thank you so much, that absolutely works!

(Also, thanks hayasidist for thinking along)
I'm just glad I thought to try it for this. I needed this to update things while the timeline was playing.

Glad I could help. :wink:
Post Reply