This location is for Registered Users Only.
Perhaps you need to login or register.
7.0, 6.3, 6.2, 6.1, 6.0 or later
Linux, Mac, Windows
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.,