Adverti horiz upsell

Free Control Curves UI 1.0.0 for Maya (maya script)

Tool for easily creating and editing rigging control curves for Maya.

License
Button download
4,031 Downloads

Compatibility

  • 2019, 2018

Operating Systems

  • Linux
  • Mac
  • Windows

History

Created:09/22/2019
Last Modified:
File Size: 17.9 KB

Q/A

Cannot run the script

Date:09/26/2021
Submitted by: David Mattock David Mattock
Hi,  I am trying to get this to work with Maya 2022  but I get this error trying to run it
"# Error: NameError: file C:/Users/User/Documents/maya/2022/prefs/scripts\bs_controlsUI.py line 13: name 'reload' is not defined # "

Many thanks

Replies to this question:

  • KiFLo

    KiFLo said almost 3 years ago:

    Hi David,
    Try this:

    Step 0. Copy "bs_controls.py" and "bs_controlsUI.py" into your Maya scripts directory
    Step 1. Navigate to your Maya directory and go to Documents\maya\2022\prefs\scripts folder
    Step 2. Open the file "bs_controlsUI.py" file with notepad
    Step 3. Under the line "import bs_controls as bsCon" add a line "import importlib"
    Step 4. In front of the line "reload(bsCon)" add in "importlib." (The line of code should look like "importlib.reload(bsCon)"
    Step 5. Save the document
    Step 6. In Maya, Open script editor on bottom right of your maya
    Step 7. Press the "+" sign in the middle of the pop up window and click Python
    Step 8. Copy and paste the codes:
     
    import bs_controlsUI
    import importlib
    importlib.reload(bs_controlsUI)
    bsCon = bs_controlsUI.BSControlsUI()
    bsCon.bsControlsUI()
     
    Step 9. Highlight the whole code, middle mouse hold, and drag to the shelf of choice
    Step 10. Click the new shelf button you created to run
     
    To further explain, the script was written in python 2 language and we need to make it into python 3 language in order to run it. Cheers!
  • Replyindent
    swatch

    swatch said over 1 year ago:

    Cheers, man!!  You probably helped many more people than you know!  Thank you!
  • Replyindent
    guigui006

    guigui006 said over 1 year ago:

    i got this errorafter doing the above / version 2024 
    # Error: NameError: file C:\Users/Ramy/Desktop/bsControls\bs_controlsUI.py line 12: name 'importlib' is not defined
  • Replyindent
    ErikSvensson

    ErikSvensson said over 1 year ago:

    Thanks! I had to do this in 2024 and I suspected it was python 2-3 related. 

Post a reply: