Hi,

The reason why Python nodes are going to slow down your rig is because they
are "untrusted".
Meaning no other nodes will be evaluated while an instance of this node is
evaluated.
So even if your Python code is well optimized it will slow down
significantly your rig because every node has to wait for the Python node
to evaluate before they can compute again.
This is happening because of the Global Interpeter Lock.

You can read more about this in the Using Parallel Maya
http://download.autodesk.com/us/company/files/2017/UsingParallelMaya.pdf

Cheers

Füzes Marcell
GER: +49 157 777 231 10 <+49%201577%207723110>
HUN: +36 30 960 4722 <+36%2030%20960%204722>
[email protected]
fuzesmarcell.com

On 20 May 2018 at 18:08, Daniele Dolci <[email protected]> wrote:

> Hi,
>
> THanks for the reply. I am actually not querying all the vertices but only
> one vertex. Also, I am not using an high res mesh to do this but I have a
> low res driver with very few vertices, that is why I think i am doing
> something wrong in my code.
>
> Cheers,
> Daniele
>
> --
> 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/c2506d6f-a248-4d5e-8f26-
> 8b3f2b814912%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/c2506d6f-a248-4d5e-8f26-8b3f2b814912%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CANC2f3QQL1dKrs86B_DG8os6ipMHkMrpXaqJ6qqHvaz2tJFYwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to