For anyone who might be interested, I've figured out what's going on. So 
the first execution of *compute* is for the *aOutMesh *attribute that I've 
got on my node (which is what I was expecting). However the second 
execution is a bit odd. The attribute I'm changing on my node is called 
*aNormalOffset*, and it's set to be keyable (obviously). For some reason, 
my node thinks that it needs to compute the output plug of the *aNormalOffset 
*attribute, and so calls *compute*. A simple plug check 
<http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=__files_Dependency_graph_plugins_Compute_methods_htm>
 prevents 
the extra calculation anyway so its not a big deal. I'm just confused 
because I've got a node with a similar set up and it doesn't call *compute* 
twice. 
Either way, as long as a proper plug check is in place it shouldn't present 
any problems (famous last words). Just thought this might be helpful in 
case anyone else runs into the same issue.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/740d398e-e475-4730-975f-3aff928aa31b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to