Welcome to the forum, feel free to ask questions here.
//////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// /// /// /// -= LoneWolf Productions =- __.....__ /// /// -------------------------- .-' '-. /// /// .' '. /// /// / \ /// /// Script Editor / |\ \ /// /// Quick Help Window Resizer ; |V \_ ; /// /// | | ' \ ; /// /// Autodesk ; ) ,_\ | /// /// Maya ; / | ; /// /// 2012 \ / \ / /// /// Script \ | \ / /// /// '. \ \ .' /// /// '-._| \-' /// /// Created By : Caers Jouri aka Lone Wolf | |\ | /// /// CopyRight 2011 __lwp___/ |_'. /______ /// /// /// //////////////////////////////////////////////////////////////////////////////////////////////////// /// © 2011 Lone Wolf Productions. All rights reserved. /// //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// /// Important Note /// /// ============== /// /// !!!This script is accessing maya defined variables!!! /// /// Change at your own risk! /// /// /// /// The script is not permanent, the settings will reset when, /// /// Quick help or Maya is closed /// /// this is only guaranteed if the script is used unmodified /// /// /// //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// if(`window -exists quickHelpUserResizeWindow`) { deleteUI -window quickHelpUserResizeWindow; } proc okQuickHelpUserResize() { global string $gCommandExecuterSideBar; int $newWidthQuickHelpUserResize = `intSliderGrp -q -v newQuickHelpUserResize`; tabLayout -e -visible true -width $newWidthQuickHelpUserResize $gCommandExecuterSideBar; deleteUI -window quickHelpUserResizeWindow; } proc applyQuickHelpUserResize() { global string $gCommandExecuterSideBar; int $newWidthQuickHelpUserResize = `intSliderGrp -q -v newQuickHelpUserResize`; if ($newWidthQuickHelpUserResize < 120) { $newWidthQuickHelpUserResize = 120; intSliderGrp -e -v 120 newQuickHelpUserResize; } tabLayout -e -visible true -width $newWidthQuickHelpUserResize $gCommandExecuterSideBar; } proc resetQuickHelpUserResize() { global string $gCommandExecuterSideBar; intSliderGrp -e -v 120 newQuickHelpUserResize; tabLayout -e -visible true -width 120 $gCommandExecuterSideBar; } string $quickHelpUserResizeWindow = `window -title "Script Editor Quick Help Resizer" -wh 500 100 quickHelpUserResizeWindow`; columnLayout -w 300; intSliderGrp -label "Quick Help Frame Size" -field true -cal 1 "center" -v 120 -cc applyQuickHelpUserResize -dc applyQuickHelpUserResize -minValue 120 -maxValue 500 -fieldMinValue 0 -fieldMaxValue 500 newQuickHelpUserResize; separator; rowColumnLayout -nc 2 -cw 1 200 -cw 2 200; button -label "Ok" -c okQuickHelpUserResize; button -label "Reset" -c resetQuickHelpUserResize; int $quickHelpResizerDisclaimerConfirmationPass; string $quickHelpResizerDisclaimerConfirmation; string $quickHelpResizerDisclaimer = "Disclaimer."+"\n"+ "\n"+ "You agree that you use these script on your own responsibility."+"\n"+ "\n"+ " You are aware that the script may not work below Maya 2012."+"\n"+ "\n"+ "These scripts will never make modifications to your system settings, as long as they are used unaltered. Any change you make, you make on your own responsibility."+"\n"+ "\n"+ "Feedback and bug reports can reported on the forum where you have found this script, or at the following email address."+"\n"+ "\n"+ "feedback.lone.wolf.productions@dommel.be"+"\n"+ "\n"+ "\n"+ "By pressing the OK button, you agree to the disclaimer above."+"\n"+ "\n"+ "Lone Wolf Productions."+"\n"; $quickHelpResizerDisclaimerConfirmation = `confirmDialog -title "Quick Help Resizer- Disclaimer." -message $quickHelpResizerDisclaimer -button "Ok" -button "Cancel" -defaultButton "Ok" -cancelButton "Cancel" -dismissString "Cancel" -icon "information"`; if($quickHelpResizerDisclaimerConfirmation == "Ok") { showWindow $quickHelpUserResizeWindow; window -e -wh 405 52 quickHelpUserResizeWindow; }
Big thanks using 2011 at the moment I'll test this out when i go back to work. Cheers Dave