Archive for April, 2013

Place hi light tool

Monday, April 15th, 2013

Wrote this tool about 2 years ago at home, and later copied it into the DD’s lightpipeline package. The basic idea is simple:
Given an eye point, and a reflection normal, calculate the reflection ray.
Some lighters on my formal show( Ironman3 ) found this tool pretty useful, so I’d like to share.

How to install:

1. download: http://www.linghaoli.com/misc/ling_place_hi_light_tool.zip
2. unzip.
3. copy the lightReflRay.py into maya’s plugin dir.
4. copy the placeHighLight.py into user’s scripts dir.
5. In maya, select a camera and a geo you want to place the hight
6. run python code as:

#######################
import placeHighLight as phl
reload(phl)
phl.placeHighlight()

Since it’s the lightReflRay is a maya python plugin node, it can update the reflection ray “Real time”.
Hope people find this useful :)

CBB:
if I had time, I’d write an AE template for this node. Also another output attribute(s) for the calculated the reflection ray’s world rotation xyz value would be great..