How can I see the Project Background Color in the Viewport?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
mgo
Posts: 57
Joined: Thu Dec 05, 2019 3:19 pm
Location: Earth, Solar System, Milky Way, Laniakea

How can I see the Project Background Color in the Viewport?

Post by mgo »

For now it seems I can only change the VP background globally. Would make more sense to see the project BG, though. Any hints?
🚀
User avatar
Lukas
Posts: 1336
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: How can I see the Project Background Color in the Viewport?

Post by Lukas »

mgo wrote: Mon Aug 02, 2021 8:19 am For now it seems I can only change the VP background globally. Would make more sense to see the project BG, though. Any hints?
Here's a script that automatically sets the viewport background color to match the project background color. Test if it works by creating two projects with different background colors and switching between project tabs, the viewport color setting should change immediately. If you change the background color on an open project, you need to move in/out of frame 0 for it to make the change: Just drop it in your tools folder (it won't show up in the toolbar).

It simply runs this line of code:

Code: Select all

MOHO.MohoGlobals.BackCol = moho.document:BackCol()
User avatar
mgo
Posts: 57
Joined: Thu Dec 05, 2019 3:19 pm
Location: Earth, Solar System, Milky Way, Laniakea

Re: How can I see the Project Background Color in the Viewport?

Post by mgo »

Lukas, my Monday just got better. That is exactly what I was looking for :D

Thanks a lot!
🚀
User avatar
Lukas
Posts: 1336
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: How can I see the Project Background Color in the Viewport?

Post by Lukas »

Happy to help 😎
Post Reply