Pages

Tuesday, February 17, 2015

Maya c++ api custom Multiply scalar Node

Hi,

This is a short multiply node of (up to 10 scalar inputs) I wrote in Maya c++ api.  Hope you find it helpful.

https://github.com/nathanielanozie/naMultiplyNode

Here's are some images of it in use:

video

a small tip i ran into when running this was in the compute its important to use the right conversion when working with inputs via dataHandle.  For example if attribute is float need asFloat (when i first wrote it i mistakenly used asDouble and the tool was bugging out).  Hope this tip is helpful.

cheers,
Nate