Personal code projects

Hey, everyone, Here are some personal projects related to Pipeline at Gitlab and Github for your enjoyments Best, My Gitlab Landing Pag...

2012年5月7日 星期一

Manage Renderman Studio Pass and Set

This is a tool that I written for manage object / light sets and Renderman for Maya and Studio Passes. Since for Renderman passes you can add connect a set to rman__torattr___crew and rman__torattr___lightcrew attributes to exclude other objects and light from being calculated for that particular pass. This will make rendering certain passes more efficient.

You can add objects and lights to a maya set (with a custom attribute added) and connect a Renderman pass' "Object Set" and "Light Set" attributes to it.

The "Set List" will only display sets created by this tool . You can use this tool to add objects and lights to a set on the "Set List".


DL_RMSPassSetManager2.py

2011年8月7日 星期日

Maya Expression for Recycling Frame

quite simple:

1:  if (frame % $num_of_frames_in_seq = 0)  
2:     file1.frameExtension= $num_of_frames_in_seq;  
3:  else  
4:     file1.frameExtension= frame % $num_of_frames_in_seq;  
Substitute $num_of_frames_in_seq for the length of your animation

2011年8月4日 星期四

Quick Light Rig UI -- Create or Duplicate Lights using Curve or Poly mesh

This is still an ongoing project. The goal of this python script is to help me quickly build some interesting light rig(mostly for background lighting) quickly by locating lights at a curve's CV or a polymesh's vertices. For example you can build a stadium type lighting by creating a curve from the edge of the roof (using Maya's Convert->Poly Edges to Curve tool) then use this tool to locate the lights that follow the shape of roof, instead of create and locate each light individually. 








DL_quickLightUI.py

Multi Grade Node Control

This is my first stab at writing a Nuke python so please let me know if you find any bug and or feature suggestion. 


I write this little python script so I can control multiple Grade node's knob in one node. Mostly used for Multi-Pass compositing where adjusting each individual Grade node for pass can be a chore. Also in combination with Frank Rueter's "Stores" script you can have multiple takes of grading store in one place.


Also with this script you can add more Tabs to control more type of operation (Knobs in Grade node) . Currently each Tab can only store one kind of Knobs(Gain, Multiply, etc.). There is also option to remove expression links.






Direct Download:
Link to mkc.py on Box.net
On Nukepedia:
This script on Nukepedia

Frank Rueter's "Stores" on nukepedia:
http://www.nukepedia.com/python-scripts/ui/stores/

2011年8月3日 星期三

Manage Render State and Phase for Renderman Passes


One of the first little MEL script I wrote for my lighting work at Digimax. When you are working with Renderman Stuio for Maya it's very possible you will create many pre-passes (shadow pass, RenderRadiosity pass for Ambient Occlusion, etc.). I wrote this utility MEL to help lighters manage render behaviors of these passes.

Selecting the item of the list and push the button below to change the behavior. Or you can use the Change All button on the top portion of window. Use Pass Type to include or exclude certain type of passes (currently it's  Shadow Pass). Selecting the item will show it on the Attribute Editor.

Currently you can change the Compute Behaviors (Compute, Reuse, or Disable) and Phases (Once Per Job or Every Frame) of each Pass.

RMSPrePASSUI.mel