Merci de ta réponse Cédric.

Je comprend bien l'utilité de réfléchir en cpp et non pas en python. 
J'essaye de le faire au maximum et j'ai réussi à optimiser pas mal de code 
grâce à ça.
Parfois j'utilise des "racourcis" pour aller un peu plus vite dans le 
prototypage, comme la fonction getPlug du MSelectionList.
Je fais aussi en fonction de ce que l'on me donne, ici un json qu'avec des 
string et donc la fonction getPlug lorsque j'ai "myNode.myAttribute" permet 
d'aller "vite" en code. Mais du coup ça oblige soit à couper la chaine de 
character soit à repenser la logique de génération de fichier qui n'est pas 
basé sur l'api maya. A terme ça viendra mais pour le moment on est en phase 
de test et de transformation de certain script.

Seulement le fait que getPlug fonctionne avec l'attribut "translate" et pas 
"rotatePivot" m’interpelle. Pour moi ce sont des attributs d'un même type.
Mais comme la récupération ne fonctionne pas il y a forcement une 
différence et je cherche a savoir laquelle.

Thank you for your answer Cédric.

I understand the usefulness of thinking in cpp and not in python. I try to 
do it as much as possible and I optimize a lot of code thanks to that.
Sometimes I use "shortcuts" to go a little faster in prototyping, like the 
getPlug function of the MSelectionList.
I also do according to what I am given, here a json with string and thus 
the function getPlug when I have "myNode.myAttribute" to go "fast" in code. 
But it forces either to cut the string or to rethink the file generation 
logic that is not based on the Maya API. Eventually it will come but for 
the moment we are in phase of test and transformation of some script.

Only the fact that getPlug works with the attribute "translate" and not 
"rotatePivot" calls me. For me, they are attributes of the same type.
But as the recovery does not work there is necessarily a difference and I 
want to know which one.

-- 
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/689ad3a6-5823-4ecb-b8d1-7b12308acc8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to