Posts

Showing posts from March, 2014

extractAlpha.py

Image
extractAlpha.py Usually we use "Shuffle" node to extract alpha from ID mattes. Some of us use "Expression" node to do the same thing. Some time we need to use basic maths function in "Expression" node to get exact matte. This code create 'Expression' node and feed the value from the window. It also clamp the value. So no need to worry about the clamp issue. Example maths function: r, (r+b)-g, (r+g+b), (r-g) This code will pop-up small window like below image., User can select maths function from the list of drop-down menu. Most of the maths function's are pre-defined and stored on the UserChoice menu. This code allow user to feed their custom maths function. If user feed anything on custom math field this code will take the code and feed the info into the expression node. Below video will explain how the function works: Hope this will help you friends., Download:  https://drive.google.com/file/d/0BzfeLEFhrh44WFRjU1lYLU1