ZhCG_PolyTools 1.6.2 for Maya (maya script)

polygon Tools, speedup your work flow!

Bugs

# Error: NameError: name '__main__' is not defined #

Statuspending
Priorityhigh
Date02/03/2014
Submitted by lee souder lee souder
Regularize_Relax;
__main__.relax()
# Error: NameError: name '__main__' is not defined #

I there a way to fix this?
thanks!
Lee

Comments on this bug:

  • lee souder

    lee souder said almost 13 years ago:

    hrmm I tried that, same problem
    Report
  • lee souder

    lee souder said almost 13 years ago:

    I put that code at the end of the python script while I was in the script editor in Maya. Then I saved it. I still get the same error.
    Report
  • metamesh

    metamesh said over 10 years ago:

    same here, same error, no way to use the script. Using linux
    Report
  • Iris heart

    Iris heart said almost 9 years ago:

    Just got this error, fixed it by deleting the runtime commands in the hotkey editor that were linked
    with "ZhCG_PolyTools " do not run the script with execfile(""), or you will get this bug
    just follow the readme file
    Report
  • spidgeon

    spidgeon said over 8 years ago:

    Thank you Iris heart, your solution seemed to fix the problem for me.
    Report
  • guguai

    guguai said almost 8 years ago:

    If it not work after installation, check the tool scripts of Hotkey Editor > Custom Scripts > zhcg_PolyTools, if your python is __main __. XXXXXX(), it is installed error, delete all scripts in the zhcg PolyTools column and reInstall zhcgPolyTools.
    Or modify python, Ex:
    "__main__.XXXXXX()" chang to "zhcg_polyTools.XXXXX()"

    Report
  • ben

    ben said over 7 years ago:

    @guguai can you elaborate more what we have to exactly?
    Report

Post a comment:

Sign in