Adverti horiz upsell

Universal IK FK Switch and Match Tool 3.0.0 for Maya (maya script)

Match poses between IK/FK controls with any Rigg. Define and Store Controls in Node for faster use.

License
Button download
8,321 Downloads

Compatibility

  • 2019, 2018, 2017, 2016

Operating Systems

  • Linux
  • Mac
  • Windows

History

Created:01/09/2017
Last Modified:05/23/2022
File Size: 16.4 KB

Bugs

unexpected indent bug

Statuspending
Priorityhigh
Date03/21/2020
Submitted byayanbrai ayanbrai
whenever i try to run the script in python it just gives the error unexpected indent and i tried on different maya versions but same result 
import mog_ikFkSwitch as mog_ikFkSwitch
reload(mog_ikFkSwitch)
mog_ikFkSwitch.FkIk_UI()
# Error: unexpected indent # 

Comments on this bug:

  • natedgreat3

    natedgreat3 said 11 months ago:

    Hi, I'm no python expert, but I got over these tab indentation errors and other problems in Maya 2022 and got to this to load for me, by making the following changes:

    1) Open mog_ikFKSwitch.py in Notepad ++, select the entire script, and then go to Edit > Blank Operations > TAB to Space. Save the file.

    2) Paste this into the maya script window as python:
    import pymel.core as pm
    import mog_ikFkSwitch as mog_ikFkSwitch
    import importlib
    importlib.reload(mog_ikFkSwitch)
    mog_ikFkSwitch.FkIk_UI()

    Then it should work.  I hope the author updates the script soon.  

  • monikag

    monikag said over 1 year ago:

    The error message you get means you have indentations at the start of the lines. Make sure there is no space or indent in any of the lines before you run the script.
     
    So instead of:
     
      import mog_ikFkSwitch as mog_ikFkSwitch
    reload(mog_ikFkSwitch)
    mog_ikFkSwitch.FkIk_UI()
     
    Make it like this:
     
    import pymel.core as pm
    import mog_ikFkSwitch as mog_ikFkSwitch
    reload(mog_ikFkSwitch)
    mog_ikFkSwitch.FkIk_UI()
     
    Best regards,
     
    Monika

Post a comment: