|09 September 2012||#1|
Earth Born>> goo.gl/mJh20portfolio
Join Date: Jan 2005
function declated at global level not found
I have two problems i couldnt figure out why is it happening..
I have function ImgplaneDone() declared at global level
but when I try to call the function from within the class like this
Even though the ImgplaneDone() is at the same level as main() function is (not inside main function)
I get error
, the weirdest thing is i only get error if I run the script like this
but if i load it in the script editor and press ctrl + enter then evrything works fine.,...
the second problem I couldnt understand why is it happening I have created an instance of the class that contains GUI framework and call the function create from main() function,
Now even though I have this code at the end
i still have to make a call like setimgpln.main() from shelf button or command line at bottom instead of just setimgpln.
Maya Project Manager | A Guide for 3D Animation and Visual Effects Enthusiasts
Last edited by DEVILSAN : 09 September 2012 at 04:35 AM.
|09 September 2012||#2|
Join Date: Sep 2003
Thread automatically closed
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|