ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

AETemplate.callCuston can override previous procedure names #283

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem.
pymel.core.uitypes.AETemplate.callCustom doesn't create a unique enough name 
for the mel proc it generates. Please see the attached file for an example of 
using the same attribute for two different functions in an AE template. If you 
implement this you will see that the code in "handleB" is run when you expand 
section A and section B.

What Version of Maya are you using?
2012x64

On what operating system? (be as specific as possible and include service
packs, 64bit vs 32bit, etc)
Windows 7 Pro x64 SP1

What Version of PyMEL are you using?
1.0.3

What is the expected output? What do you see instead?

If possible, provide a few lines of code to reproduce the problem. It helps
us if your code will reproduce the problem from a new scene.

Does maya.cmds exhibit the same problem?

Please provide any additional information below.
I've provided a fix for this and attached it here. It add's the function name 
to the procedure or the memory ID if it can't find a valid name.

Original issue reported on code.google.com by tdor...@zindagigames.com on 19 Sep 2012 at 8:50

Attachments: