
Script
BG Switcher
By Arahnoid · Credited author: Igor Grinchesku · 2010-09-05
- Version
- 2
- Version requirement
- 2011 or lower
- Date updated
- 2011-07-24
- Votes
- 152
Description
Additional Info
Hi, here is the new version of BGSwitcher which allow you in easy way to set in you viewport nice gradient backgrounds and modo like backgrounds
New:
- New ui
- Fixed strips for gradient background (gamma 2.2 problems)
- Spherical backgrounds like in modo (works just in 3DS Max 2012)
- Silhouette tester
- Dummy
- Materials and improved wireframe randomizer
- UV Cheker tool
- Quick Materials
- MaxScipt tools
I have recorded a video how to instal it and use BGSwitcher 🙂 it was first time when I made some explanation video and I was a bit nervous 😳 and Sorry for my English.
I had a bit of problem with video an audio synchronization at the end of video :( so I'll try to update it later. sorry for this
For runing script I used Script Organizer
Also please have a look at Splitgatecentral video "Making of N0X-2292 (part 1)" on vimeo to see how usefull can be silhouette tester
If yo have any suggestion or found a bug please dont hasitate to contact me by mail. If you are interested to join and participate in discussion and developing of BGSwithcer feel fre to join to BGSwitcher room on IRC
Server: irc.freenode.net Room: #BGSwitcher
Thank you!
Videos
Attachments
- bgswitcher2rc.zip — bgswitcher2rc.zip1.2 MB
Tags: UI, viewport, ViewportColorSwitch
Comments (55)
asymptote · 2013-03-19
Is there any way to get this working with legacy viewport switcher(LVS)
http://3dsmaxfeedback.autodesk.com/forums/76763-small-annoying-things/su…
I can only store the BG in one view,
thx
silencer77 · 2012-01-31
Great stuff. However do you think it is possible to have it so when you use gamma on you will have the same result as when it is off. I always have gamma turned on but the backgrounds dosn't look so good then.
Arahnoid · 2012-02-03
Try to turn on/off few times gamma using "On/Off Gamma" button in background switcher rollout in 90% it helps.
BGSwitcher have 2 sets of background images, first one is used when gamma is turned off and second set of images is used when gamma is turned on. But some times even this set of background images looks bad and I have no idea for the moment how to fix this
dreamco · 2011-07-28
Unfortunately it works for me only with an empty scene. When i open a scene and use it only shows plain colors instead of gradients. Did i mention the script error when you already use a color as background? I think its far away from RC.
PS. To be honest i performed a scene merge of my file in an empty scene and re-saved. Then it worked as expected.
harumscarum · 2011-07-27
wow! great improvement. but is spherical background works only in shaded mode?
Arahnoid · 2011-07-27
Spherical Backgrounds should work in all modes shaded, wireframe etc. but them works just in 2012 version
Great script
lucpet59 · 2011-07-26
Can you restore the original state of max after changing it?
I tried to watch the video but I have trouble hearing and couldn't work out what some of the button were for (Could you add some tooltips to the buttons)
Hello lucpet59
Arahnoid · 2011-07-26
>Can you restore the original state of max after changing it?
Do you mean to restore originial state after you use MaxScript tools? then try to use button with green arrows
Please let me know what categories of the script are confusing for you and I'll try to help
lucpet59 · 2011-07-27
Arr yes sorry I should have been clearer.
What I was trying to ask was, if I change one of the background colours is there a button to go back to the way is was before.
In BGS rollout
Arahnoid · 2011-07-27
Yes, actualy are 3 buttons in BGS rollout. AW AD and in right upper corner.
AW - is for ame-lihgt color scheme set viewport background color to light gray
AD - is for ame-dark color scheme set viewport color to dark gray
the last one in upper right corner allow you to switch between gradient viewport and simple colored
Thank you
Arahnoid · 2011-07-25
Hi @miauu thank you for you suggestion, will definitely check RTTAsist script
@Michele71 thank you :)
Michele71 · 2011-07-24
Very, very nice job man! :)
I have one suggestion :)When
miauu · 2011-07-24
I have one suggestion :)
When you are using Silhouette tester closing the BGSwitcher will leave the white(black) materials. It will be nice when you closing the BGSwitcher the original materials of the objects to be restored. :) This is easy to do. If you have some troubles look the RTTAssist code. :)
No Mr Sky...
wearestardust · 2011-07-07
Nevermind, i still love your script, just forgot to tick "Use environment" in Viewport Background Settings...
no mr sky?
wearestardust · 2011-07-05
Hey,
I love your script and i bet its not the scripts fault,but mine...so...i installed it a couple of days ago and now i tried creating a daylight system with mr sky and i can´t see the mr sky in the viewport...any idea, what could cause the problem, if its NOT your script?
Gamma?
ShiroEd · 2011-05-23
Hi,
Just wondering if you've managed to fix the problem with Gamma 2.2 and when we might expect an update?
Also how do I get it to save my background choice when I close Max down? Both 2011 and 2012 don't save my choice by the way.
Much appreciated and great work on an awesome script!
Hi ShiroEd
Arahnoid · 2011-05-23
I work on big update of BGSwitcher and I hope in a month it will be ready There are fixed somehow problems with gamma backgrounds look not perfect but much better without large strips.
For now you can try to fix your background using:
Customize-Customize user interface - Colors(tab)- Viewport(dropdown menu) and find there Viewport background change color too (RGB 125 125 125) for light ui or RGB 9 9 9 for dark ui
After go to "Customize-Lock UI Layout" it will prevent changing background color after restart
great script!
harumscarum · 2011-04-10
i like modo gradient most of all. but is it possible to make parametric? i mean could it be rotatable like in modo?
Just theoretically
Arahnoid · 2011-04-11
Yes I guess theoretically it is possible but the way how I imagine it, will slow down viewport :(
Who know I am sure here are experts who can do it well but don't see some sense to do it.
by the way I almost figured out how to fix problems with striped background for 2.2 gamma it is not perfect but is much better :)
Fantastic Script!
Ace-Angel · 2011-04-10
EDIT: Argh, never-mind, I'm an idiot. Script works fine, thanks alot mate!
Gamma 2.2 fix?
vbn · 2011-03-30
Great script, Igor!
I have just a minor request. I will be very happy (and I am sure many others too) if you find a fix for those who use gamma 2.2 (Linear Workflow)? I can't deactivate the gamma settings as you suggest because then my renders are looking wrong. For the gamma 2.2 users like me the banding on most of the presets is horrible. Thanks!
Thank you for reply
Arahnoid · 2011-04-04
This days I will try to fix gamma problems.
I guess what I export images with wrong gamma. As you can see on screenshots of ui above gamma changes also affect buttons color in the script window.
First screenshot was made with gamma turned off and second one with gamma 2.2 and look much darker
If somebody have any idea how to fix gamma 2.2 please let me know.
I will highly appreciate any help
BGSwitcher don't Run
Ale3d · 2010-11-15
Please, help me. When I switch to any viewport background, an error appears and it says:
--No "SetAsBackground" function for undefined.
How can I fix this in the script?
Thanks
Hi
Arahnoid · 2010-12-13
Sorry for so late answer
Please contact me by mail and I'll try to help you
Thanks,
Igor
anujraghav · 2010-09-21
very nice script
only issue is when renderable is on rendertime increases drastically
even blank scene takes 10x longer then default
what i found was that its because of filtering , switching filtering to none increases the performance noticably
Arahnoid · 2010-09-21
Hi anujraghav thanks for reply
what kind of rednderer you are using, because I don't see any difference of render speed in Mental Ray
TiagoSales · 2010-09-13
Already mailed to you.
Thanks.
TiagoSales · 2010-09-13
great script! I'm going to use it a lot!
I have added some features on it like make background renderable.
i can show you if you don't see any problem.
Arahnoid · 2010-09-15
Hi Tiago 🙂
of course I would like too see how you added this feature in script
I am working on second version of BG Switcher and I also have added possibility to see background in reder frame but maybe you did it better so please send me your version on mail arahnoiddesign@gmail.com
I want to add more nice features in it but because of my beginner skills in max script it take more time than i thought
Thanks,
Igor
A R K A I K O · 2010-09-08
Hey,thanks for this,very nice!But doesn´t work to me!The Pop-up Max script appears with the message " --No setAsBackground function for undefined",what means?Sorry for newbie question!Help me,please =)
Arahnoid · 2010-09-08
Sorry for that
I have made a small update of script
Now should be no problems with path, installation is more easy script not depend on drive or folder where you have installed 3d Max
I apologies for the script errors,but until end of the week I am very busy and have no time to fix all
Best regards,
Igor
A R K A I K O · 2010-09-08
Thank you very much,working nice here now!
I´m using Max 2011 32bits,OS Win Vista Ultimate 64 bits
Thank you mate!
fajar · 2010-09-08
can you just replace
C:\Program Files\Autodesk\3ds Max 2011\Scripts\BGSwitcher\\" + imgName +".png" to #maxroot + imgName +".png", it'll make your path more relative...you can install it in Windows or 3dsMax which is max or windows doesnt installed in C ...
thank
traustinn · 2010-09-07
This is really nice...GREAT JOB!! :)
alelink · 2010-09-07
very well done, thanks!
Massemannen · 2010-09-07
Friggin´cool! Additional option could be to also change edge colors and face colors...
lumgik · 2010-09-07
Sweet script=)
Does it fit with Max 9?
I edited the line in the Script to my 3D Max 9 installation path, but when I run the script in 3D Max 9, nothing happened.
Anubis · 2010-09-07
Hi Arahnoid,
I see so this is your first script here, nicely done, cheers, keep going.
A time ago simplar script was asked in the forum and I made a simple one (without gradients). If interest in, check it out here.
Regards
Anubis
Arahnoid · 2010-09-07
Hi Anubis Thanks for link actually I want to make the same functionality as in "Swap background color" script to allow to pick any color what you want instead to have static color icons 🙂
Hi lumgik
"Does it fit with Max 9?"
Scrept wasn't tested by me in this version of 3 dmax but I want to ask you to execute this trings in script listener one by one wit numpad enter key or Shift +Enter
bgNewImage = openBitmap "C:\Program Files\Autodesk\3ds Max 2011\Scripts\BGSwitch\Maya2011.png"
setAsBackground bgNewImage
viewport.DispBkgImage = true
completeRedraw()
Just change first string in this format
bgNewImage = openBitmap "PATH_TO YOUR_ SCRIPT FOLDER \BGSwitch\Maya2011.png"
and let see what will happen
real08121985 · 2010-09-07
Maybe this is useful for you. The second line of code solved so many problems for me.
-- 3ds max scripts folder
scriptsDir = symbolicPaths.getPathValue "$scripts"
-- folder of this scriptfile
thisDir = getFilenamePath(getSourceFilename())
Arahnoid · 2010-09-07
Thank you :)
)) in the next version will be less problems with installation
drdiegocolombo · 2010-09-08
Error in 3ds max2009
when i chose one preference the message is "--No "setasBackground" function for undefined
Thanks for help
drdiegocolombo · 2010-09-08
Problem resolved
Wonderfull
Arahnoid · 2010-09-06
Thanks guys for comments 🙂
"what about to have it renderable?"
It is cool Idea I'll try to make it in next version as sun as possible 🙂
jinj · 2010-09-06
nice tool!
what about to have it renderable?
Nysuatro · 2010-09-06
I like it a lot. How about the feature of adding a image that you can repeat in the y and/or x axis.
Wakx · 2010-09-06
Очень интересный скрипт. Мягкий фоновый градиент, намного приятнее однотонного серого.
Большое спасибо.
Very interesting script. Background color transition, is much more pleasant monophonic gray.
Thank you very much.
z0mbie · 2010-09-06
there is a link
can't you see it ?
i paste it for you
http://www.scriptspot.com/files/bgswitcher.zip
thanks a lot Igor
I will test it now !
asymptote · 2010-09-06
Dude read the thread, and you'll see he originally forgot the link, apologized and gave us the link.
Here's a link for you....your Number 11 :)
http://www.mindrepanda.com/miscellaneous/those-15-annoying-people-on-eve…
asymptote · 2010-09-06
Very Nice , I'm modeling f1 circuits at the moment and this gives me a virtual skyline in Max.I like it a lot, much more pleasing to the eye gives the viewport some depth, and my screengrabs look cool :)
The only thing I can suggest is adding an add/save preset routine using gradients (If this is possible in Max).
thanks
Arahnoid · 2010-09-06
I'm glad to see what you find this script useful :)
I like an idea about custom presets, actually right now I don't know how to make this :( because I am new in max script but I will try to ad this functionality
Also I have a few new ideas how to improve script and I think very soon you will see a new version of script
:)
Arahnoid · 2010-09-06
Hi guys sorry for that
I have attached the script :)
chenx · 2010-09-06
Cool!But where's link?
fajar · 2010-09-06
No link ....???!!!
asymptote · 2010-09-05
Looks cool , but I don't see a link.