Adverti horiz upsell

Rim Light Cheat 1.0.0 for Maya (maya script)

Automatically add rim lighting to your materials/ textures

License
Button download
2,187 Downloads

Compatibility

  • 2013, 2012, 2011

Operating Systems

  • Linux
  • Mac
  • Windows

History

Created:01/04/2013
Last Modified:01/07/2013
File Size: 1.33 KB

Keywords

Rim light

hippo_title

Some time ago I wrote a little script to automate adding rim-lighting ramps to materials. I recently added some defaults so thought I'd share it.

Download and place it in your scripts folder:

Mac: User/Library/Prefrences/Autodesk/Maya/Maya-20xx/scripts

PC: My Documents/maya/20xx/scripts

 

Select a material (Lambert, VrayMtl, Phong etc.), or a texture node (Ramp, File, Checker etc., etc.).

Screen_Shot_2013-01-03_at_15

Then in the commands bar or script editor type the following:

 

In MEL:

python "import AddRimLight"; python "AddRimLight.addRimRamp()";

Or Python:

import AddRimLight

AddRimLight.addRimRamp()

This will add a ramp and a sampler info node and hook them both up.

Screen_Shot_2013-01-03_at_15

Adjust the colours on the ramp to taste, and render away.

 

Here's a before:

beforeRim_01_iw

And after:

afterRim_01_iw

Not bad for the press of a button.

The clever thing we're doing here is adding a sampler info node and using it to power a ramp based on the angle between the camera and the object. The more acute the angle, the more the bottom colours on the ramp will be used.

If you select a material node, the ramp is added to the colour slot (and decent defaults are automagically set for you), if you select a texture node, the ramp is added to the Colour Offset attribute (in the Colour Balance roll down) - defaults are also created for this mode, but they will almost certainly need tweeking.

Enjoy!




Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.

People who favorited this item:

  • Tony Chou
    Tony Chou
  • jossuuff
    jossuuff
  • sil_musashi
    sil_musashi
  • chucko
    chucko
  • veefeld
    veefeld
  • DemonDeacon
    DemonDeacon
  • darren oakes
    darren oakes
  • s.feuga
    s.feuga