Cycle warnings come from the way nodes are connected, rather than the API
(assuming you mean maya.api.OpenMaya or the C++ API?). The warning means
that one or more *output* attributes in your plug-in is causing one or more
of the of the *input* attributes to evaluate. For example, if the
mesh.outMesh is connected to yourDeformer.inMesh and yourDeformer.outMesh
is connected to mesh.inMesh, that would be a cycle if inMesh is used to
compute outMesh. I would disconnect all of them, and reconnect each of them
one at a time until the warning makes an appearance. You can also
comment-out all of your attributeAffects() calls, which is what determines
which plug should cause another plug to evaluate.

On Mon, 5 Jul 2021 at 12:47, Utkarsh Agnihotri <utkarsh6...@gmail.com>
wrote:

> Hi, everyone,
> I am trying to write a custom deformer and it is working well with single
> mesh with no inputs like skincluster, blendshape, wrap deformer etc. But
> when I try to run it on a mesh with multiple deformers, it throws me a
> cycle warning. Can you please tell me how can I avoid this in maya api?
>
> Thanks!!
>
> --
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/5437b6d1-aa9f-4639-852a-0738f539240dn%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/5437b6d1-aa9f-4639-852a-0738f539240dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODeyYv1yNzA5rtGqeQmHgtmh_aocanSrGBWt5J0oTWxPw%40mail.gmail.com.

Reply via email to