Thanks Justin.  I can never remember which "math" functions are in math, and 
which are built in.  I do think I recall having this issue before.  I found 
this example that worked, at least at the time.  

outColorHandle = block.outputValue( geomShader.aOutColor )
outColorHandle.setMFloatVector(resultColor)
outColorHandle.setClean()

For some reason, it seemed the createColor attributes need to be set and an 
MFloatVector, I'm assuming because Maya is handling the color attributes with 
their own stuff.  Hope this helps.



On Friday, June 14, 2013 5:42:11 PM UTC-7, Justin Israel wrote:
> round() is a python built-in function
> 
> http://docs.python.org/2/library/functions.html#round
> 
> On Jun 15, 2013 10:05 AM, "Daniel Lindsey" <[email protected]> wrote:
> 
> I just skimmed through this really quick. But if the quick read, shouldn't it 
> be math.round not round?  Not sure is that's the error you're getting it not 
> since you didn't post the error and I don't have maya in front of me right 
> now.
> 
> 
> 
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Python Programming for Autodesk Maya" group.
> 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> 
> To post to this group, send email to [email protected].
> 
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to