hey Shawn

'''
  #set the color and alpha, rgba
               glFT.glColor4f(rPlug, self.green, self.blue, self.alpha)
#Change color and add alpha
'''

you don't appear to actually be setting the r,g,b,alpha values from the
attributes on the node

you get the MPlug to them but don't set variables to be those plug values

either :

self.red = rPlug.asFloat()
self.green = rPlug.asFloat()
self.blue = rPlug.asFloat()
self.alpha = rPlug.asFloat()

glFT.glColor4f(self.red, self.green, self.blue, self.alpha)

or :

glFT.glColor4f(rPlug.asFloat(), gPlug.asFloat(), bPlug.asFloat(),
aPlug.asFloat())


hope that helps
-cheers

Damon Shelton

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to