Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

ERROR: Cannot find procedure

ERROR: Cannot find procedure

Anonymous
Not applicable
2,612 Views
1 Reply
Message 1 of 2

ERROR: Cannot find procedure

Anonymous
Not applicable

Hi everyone, first post here!

 

we are 2 young 3D artists just starting with rigging and scripting, and we have a problem. We created a Fk-Ik match script and it all works (wooow), and now we are trying to create a WINDOW with a button for every match script (ex: leg 1 ik to fk, leg 1 fk to ik, leg 2...)

BUT: when we create the procedure and we press the button, we get the ERROR: Cannot find procedure.

 

WE HAVE NO IDEA WHY!

 

our script looks like nothing's wrong, but still.. not working.

We tried with proc and global proc, no difference.

We attach some screenshot to better explain the situation.

 

Thanks in advance!

 

P.S. we have maya 2014

0 Likes
2,613 Views
1 Reply
Reply (1)
Message 2 of 2

Cagetron
Advocate
Advocate

Try putting all that script into a .mel file in your scripts directory, then source the mel file from the script editor (File > Source Script...)  If you restart maya it will also source the script.  Put that window scripting into it's own global procedure, which you would call maybe from a shelf button to open the window.  You can then call the other procedures from those button commands. 

 

Otherwise you need to put all that ik/fk scripting into the actual button command in your window script, which isn't the greatest way of going about it.  

0 Likes