Adverti horiz upsell

May9 - Maya custom tools and prefs 1.10.9 for Maya (maya script)

May9 is a set of settings and tools for Autodesk Maya, from community user base.

License
Button download
2,629 Downloads

Compatibility

  • 2016

Operating Systems

  • Linux
  • Mac
  • Windows

History

Created:07/30/2015
Last Modified:06/06/2016
File Size: 23.3 MB

Bugs

Playback toggle not working (hotkey, command and menu)

Statusclosed
Prioritylow
Date09/28/2015
Submitted byCharlieWales CharlieWales
Hi Davide. First, thanks for sharing this. The issue is as the title says. I always use alt+v to toggle playback but this throws an error. Also calling 'togglePlayback' manually does the same thing. Even the menuItem from the Playback menu does not work.

// Error: file: C:/Program Files/Autodesk/Maya2016/scripts/others/timeSlider.mel line 128: Object 'MayaWindow|toolBar6|MainTimeSliderLayout|formLayout9|gridLayout1|symbolButton13' not found.

The play backwards button has been replaced by the interactive playback. I ended up editing your intPlay.mel to recreate the control and avoid the error:

// intPlay.mel
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
global proc intPlay()
{
    string $ctrlUI;
    string $ctrlUI_controlName;
    string $command;
    string $layout;
    $command = "InteractivePlayback;";

    $ctrlsUI = `lsUI -type control MayaWindow`;
    for ($ctrlUI in $ctrlsUI)
    {
        if ((`match "symbolButton" $ctrlUI`) == "symbolButton")
            if (`symbolButton -q -c $ctrlUI`=="playButtonBackward")
            {
                $layout = `symbolButton -q -p $ctrlUI`;
                
                // store the current name of the control
                $ctrlUI_controlName = $ctrlUI;
                
                deleteUI $ctrlUI;
                $stepBtn = `symbolButton -p $layout -image "intPlay.png" -c $command -ann "Interactive Playback. Pressing the ESC key will stop playback." stepBtn`;
            }
    }
    
    $ctrlsUI = `lsUI -type control MayaWindow`;
    for ($ctrlUI in $ctrlsUI)
    {
        if ((`match "symbolButton" $ctrlUI`) == "symbolButton")
            if (`symbolButton -q -c $ctrlUI`=="playButtonForward")
                symbolButton -e -c "play -state (!`play -q -state`);" $ctrlUI;
    }    
    
    // add a column to the timeSlider layout and recreate the play backwards button
    gridLayout -e -nc (`gridLayout -q -nc $layout` + 1) $layout;
    symbolButton -m 0 -p $layout $ctrlUI_controlName;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

Also feel free to add any of my tools if you find them useful. Thanks again. Cheers.

Comments on this bug:

  • Davide Alidosi

    Davide Alidosi said about 9 years ago:

    Hi Charlie, TNX for the quick fix, I have add it to release 1.5.4. And TNX for support, I'll probably add some of your tools in one of next releases. Cheers, Davide

Post a comment: