Adverti horiz upsell

ZhCG_PolyTools 1.6.2 for Maya (maya script)

polygon Tools, speedup your work flow!

Button download


  • 2013, 2012, 2011, 2010, 2009

Operating Systems

  • Linux
  • Mac
  • Windows


Last Modified:04/21/2013
File Size: 16.7 MB


maya, modeling, polyTools


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

Submitted bylee souder lee souder
# Error: NameError: name '__main__' is not defined #

I there a way to fix this?

Comments on this bug:

  • lee souder

    lee souder said over 9 years ago:

    hrmm I tried that, same problem
  • lee souder

    lee souder said over 9 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.
  • metamesh

    metamesh said over 7 years ago:

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

    Iris heart said over 5 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
  • spidgeon

    spidgeon said over 5 years ago:

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

    ben said over 4 years ago:

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

    guguai said over 4 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()"

Post a comment: