Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UV Moving tool

UV Moving tool

I have been using Maya since 2005-2016 pretty consistently.  Only last few years have become more of a hobbiest wanting to get back in.. I'm mainly a modeler/texturer, but I have worked in all areas ofWow!  Somewhat different.  I have a suggestion and a code (not sure where it came from) but I have used it for years only, this time, on 2022 it does not work.  A fellow Autodesk employee says that Python is a bit different now in Maya  You all have needed a tool like this for decades.  Unless there is one that I don't know about.. It's pretty amazing and it can keep you very organized if you have multiple maps...  It's a .mel code...I love this thing and I'm sure many others would find the functionality of it wonderful.  I just don't know who to credit with this amazing tool.. Thanks Suzanne Hunter

 

global proc UVMover(){
if(`window -exists UVMover`){
deleteUI UVMover;
}

window -widthHeight 216 81 -s 0 -title "UV Mover 0.1" UVMover;
columnLayout MainRow;
rowLayout -numberOfColumns 2 -parent MainRow Column1;
rowLayout -numberOfColumns 2 SubCol;
columnLayout -columnAttach "both" 0 -parent SubCol Column2;
columnLayout -columnAttach "both" 0 -parent SubCol Column3;

setParent Column1;
//text -l "Tjena!\n";
showWindow;

setParent Column2;
button -label "Up" -command "Up" UpButton;
button -label "Down" -command "Down" DownButton;
showWindow;

setParent Column3;
button -label "Left" -command "Left" LeftButton;
button -label "Right" -command "Right" RightButton;
showWindow;
}
proc Up(){
polySelectBorderShell 0;
polyEditUV -u 0.0 -v 1.0;
}
proc Down(){
polySelectBorderShell 0;
polyEditUV -u 0.0 -v -1.0 ;
}
proc Left(){
polySelectBorderShell 0;
polyEditUV -u -1.0 -v 0.0 ;
}
proc Right(){
polySelectBorderShell 0;
polyEditUV -u 1.0 -v 0.0 ;
}
UVMover();

1 Comment
Anonymous
Not applicable

astiglic_0-1629753604676.png

You have the same tool in the UV toolkit. With the arrow button you can set the value for how much the UVs move.
If you still prefer the old script you can find it here:
https://www.highend3d.com/maya/script/uv-mover-for-maya
Not sure why it doesn't work. Try selecting the UV's in the UV window.

global proc UVMover(){
	if(`window -exists UVMover`){
		deleteUI UVMover;
	}

	window -widthHeight 216 81 -s 0 -title "UV Mover 0.1" UVMover;
	columnLayout MainRow;
	rowLayout -numberOfColumns 2 -parent MainRow Column1;
	rowLayout -numberOfColumns 2 SubCol;
	columnLayout -columnAttach 	"both" 0 -parent SubCol Column2;
	columnLayout -columnAttach 	"both" 0 -parent SubCol Column3;

	setParent Column1;
	//text -l "Tjena!\n";
	showWindow;	

	setParent Column2;	
	button -label "Up" -command "Up" UpButton;
	button -label "Down" -command "Down" DownButton;	
	showWindow;

	setParent Column3;
	button -label "Left" -command "Left" LeftButton;
	button -label "Right" -command "Right" RightButton;
	showWindow;
}
proc Up(){
	polySelectBorderShell 0;
	polyEditUV -u 0.0 -v 1.0;
}
proc Down(){
	polySelectBorderShell 0;
	polyEditUV -u 0.0 -v -1.0 ;
}
proc Left(){
	polySelectBorderShell 0;
	polyEditUV -u -1.0 -v 0.0 ;
}
proc Right(){
	polySelectBorderShell 0;
	polyEditUV -u 1.0 -v 0.0 ;
}
UVMover();


Here is the proper code, the credit goes to the Erik Spellerberg

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report