Home Coding, Scripting, Shaders

Alternate Keys #MEL

polycounter lvl 8
Offline / Send Message
Pinned
jayantbhatt007 polycounter lvl 8

Hi guys I have one doubt I assigned this procedure to the button (as a command) but  when I click on the ( button1 ) it is refrencing that character. Is that possible when I again hit that button it should remove the refrenced character using any alternate key (like holding alt + Button1) or (ctrl + button1).

 

To remove the refrence - - -  The command is ( -removeReference(-rr) )

 

SEE THE COMMAND _ _ _ _

 

{
// create a window
window;
// define the layout of controls added
// to the window.
columnLayout;
// create a couple of buttons
button -label "button1" -c "UE4_Man_Scale()";

// show the window we last created
showWindow;;
}

 

// It will import your character as a refrence

UE4_Man_Scale();

global proc UE4_Man_Scale()
{
string $file_Path = (`internalVar -userPrefDir`) + "icons/3D_Ghost_Script/Unreal_Character_Scale.ma";
file -r -type "mayaAscii" -ignoreVersion $file_Path;
}

Sign In or Register to comment.