Archive for May, 2008
MEL: Setting the color for multiple lights
Friday, May 16th, 2008Here’s a snippet if you want to set the RGB color for multiple lights at once.
colorEditor;
if (`colorEditor -query -result`) {
string $lights[] = `ls -sl -dag -type light`;
float $values[];
$values = `colorEditor -query -rgb`;
for ( $l in $lights ) {
setAttr ($l + ".color") -type double3 [...]
Save Our Soho
Thursday, May 15th, 2008Apparently Westminster Council is proposing to impose a ban on all outdoor drinking in Soho, in the heart of London’s West End. Considering how cramped conditions already are in the pubs it would be near impossible to enjoy oneself on a night out.
From a health point of view it is obviously good because fewer people [...]
MEL: Look through Light or Camera
Wednesday, May 14th, 2008As a Lighting TD I find myself often having to look through different lights to position them correctly in the scene. Here’s a MEL procedure for opening the light (or camera) in a seperate window.
Usage: lookThrough( `ls -sl` );
proc lookThrough( string $selection[] ) {
string $shapeType[] = `listRelatives -shapes $selection[0]`;
string $type = [...]
Welcome
Monday, May 12th, 2008Welcome to my brand new blog from WordPress! On these pages I will blog a little bit of anything that comes into my mind. Stay tuned…