Announcement

Collapse
No announcement yet.

Switch Material map?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Switch Material map?

    What i'd like to do is be able to switch lights on and off on this material. So one material would be the lights on version, and the other lights off. I'm currently doing this via a vray blend material and just tweaking the blend amount (255 on, 0 off, where the light material is in the first slot). Is there a better way to do this?

  • #2
    Well, I got a start on this in the form of a scripted material. You can select your two materials, base and switch, and switch between them via a radiobutton (which is reflected in the viewport). I also added an item picker. What i'm think it should do is you select a dummy or point or whatever, and if it's 1m in Z, it's true/switched, and if it's at 0, it's false/base. There are no in betweens. I'd really appreciate any help! Image, scene, and script attached. Simply place the script in your plugins (not scripts) directory.



    Scene:
    http://www.dukecg.net/MaterialSwitcherTest.zip

    Script:
    http://www.dukecg.net/MaterialSwitcher.zip

    Comment

    Working...
    X