extractAlpha v1.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: satheesh R
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.
Requirements:
7.0, 6.3, 6.2, 6.1, 6.0 or later
Linux, Mac, Windows
28 Mar 2014
58


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:
  extractAlpha.py


Hope this will help you friends.,

Please login in order to download these files.

Comments   

 
+1 # satheesh R 2014-03-30 06:19
menu.py lines:

import extractAlpha

menuBar = nuke.menu("Nuke")
menuBar.addCommand('Edit/Node/extractAlpha', 'extractAlpha.e xtractAlpha()', 'alt+a')
 

You have no rights to post comments

We have 2897 guests and 67 members online