Auto UV Unwrap not working on 2016 Ext 2

Auto UV Unwrap not working on 2016 Ext 2

sketchguy
Contributor Contributor
1,424 Views
2 Replies
Message 1 of 3

Auto UV Unwrap not working on 2016 Ext 2

sketchguy
Contributor
Contributor

I’m attempting to use Auto UV Unwrap on Maya 2016 Extension 2, OS X 10.11.5.

Upon starting a fresh Maya, i get the following warning right off the bat:

// Warning:  int $state = !($state); // 
// Warning: "/Users/Shared/Autodesk/ApplicationAddins/MayaBonusTools/Contents/scripts-2016/bonusToolsMenu.mel" line 1836.24 : Redeclaration of variable "$state" shadows previous declaration at line 1835. Previous value will be overwritten by explicit initializer. // 
file -f -new;
// untitled // 
commandPort -securityWarning -name commandportDefault;

Next, when I select the Auto UV Unwrap tool, i get this:

bt_autoUnwrapUVTool;
// Warning:  string $facesToMap[] = `ls -selection -flatten`; // 
// Warning: "/Users/Shared/Autodesk/ApplicationAddins/MayaBonusTools/Contents/scripts-2016/bt_autoUnwrapUVTool.mel" line 850.49 : Redeclaration of variable "$facesToMap" shadows previous declaration at line 830. Previous value will be overwritten by explicit initializer. // 
// Warning:  string $borderEdges[] = `ls -selection -flatten`; // 
// Warning: "/Users/Shared/Autodesk/ApplicationAddins/MayaBonusTools/Contents/scripts-2016/bt_autoUnwrapUVTool.mel" line 867.50 : Redeclaration of variable "$borderEdges" shadows previous declaration at line 831. Previous value will be overwritten by explicit initializer. // 
// Warning:  int $buttonNumber = (`optionVar -q AutoUnwrapSymetryAxis`); // 
// Warning: "/Users/Shared/Autodesk/ApplicationAddins/MayaBonusTools/Contents/scripts-2016/bt_autoUnwrapUVTool.mel" line 1651.61 : Redeclaration of variable "$buttonNumber" shadows previous declaration at line 1616. Previous value will be overwritten by explicit initializer. // 
// Warning:  int $buttonNumber = (`optionVar -q AutoUnwrapLayout`); // 
// Warning: "/Users/Shared/Autodesk/ApplicationAddins/MayaBonusTools/Contents/scripts-2016/bt_autoUnwrapUVTool.mel" line 1694.56 : Redeclaration of variable "$buttonNumber" shadows previous declaration at line 1616. Previous value will be overwritten by explicit initializer. // 

I still get the Auto UV Unwrap window to open, so I select edges on a default cylinder to test out. Here’s what I get:

Must hide standard HUDs because the interfere with the AutoUnwrap HUD buttonsHUD display must be turned on in panelsThick texture border display turned on
defaultNavigation -connectToExisting -source unwrapBaseShader -destination unwrapBaseShaderSG;
connectAttr -f unwrapBaseShader.outColor unwrapBaseShaderSG.surfaceShader;
// Result: Connected unwrapBaseShader.outColor to unwrapBaseShaderSG.surfaceShader. // 
// Warning: file: /Users/Shared/Autodesk/ApplicationAddins/MayaBonusTools/Contents/scripts-2016/bt_autoUnwrapUVTool.mel line 648: Material had no shading group. A shading group was created. // 
sets -e -forceElement unwrapBaseShaderSG;
// Result: unwrapBaseShaderSG // 
select -d pCylinder1.f[0:59] ;
// Warning: file: /Users/Shared/Autodesk/ApplicationAddins/MayaBonusTools/Contents/scripts-2016/bt_autoUnwrapUVTool.mel line 600: Temporarily setting selected edge color to red for better display // 
select -r pCylinder1.e[39] ;
select -add pCylinder1.e[20:39] ;
select -tgl pCylinder1.e[99] ;
select -tgl pCylinder1.e[19] ;
select -add pCylinder1.e[0:19] ;
select -tgl pCylinder1.e[59] ;
select -tgl pCylinder1.e[79] ;
select -d pCylinder1.e[0:39] pCylinder1.e[59] pCylinder1.e[79] pCylinder1.e[99] pCylinder1.e[0:39] pCylinder1.e[59] pCylinder1.e[79] pCylinder1.e[99] ;
select -add pCylinder1.e[0:39] pCylinder1.e[59] pCylinder1.e[79] pCylinder1.e[99] ;
select -add pCylinder1.e[0:39] pCylinder1.e[59] pCylinder1.e[79] pCylinder1.e[99] ;
select -d pCylinder1.f[0:59] ;
// Error: file: /Users/Shared/Autodesk/ApplicationAddins/MayaBonusTools/Contents/scripts-2016/bt_autoUnwrapUVTool.mel line 970: Cannot find procedure "Unfold3D". // 

I check the Plug-in Manager and the Unfold3d is checked both Loaded and Auto-Load.

I tried re-installing the latest Bonus Tools again, but get the same errors

Any ideas?

Thanks!

0 Likes
1,425 Views
2 Replies
Replies (2)
Message 2 of 3

pshwayka
Advisor
Advisor

Someone in the comment section for the bonus tools suggested editing the bt_autoUnwrapUVTool.mel file by replacing  "Unfold3D -u" with "u3dUnfold".

I tried it, and it seems to work. (You will get a warning when you first run it during a session, but it doesn't seem to affect the functionality.)

I recommend renaming your existing file with the extension ".old" in case you run into problems. Also if you want to just use my edited file, it is attached.

On OSX, the file belongs in /Users/Shared/Autodesk/ApplicationAddins/MayaBonusTools/Contents/scripts-2016. Note: This will break the tool in regular Maya 2016 and 2016 Ext1, so if you still use those sometimes, keep the backup of the original file.

0 Likes
Message 3 of 3

Anonymous
Not applicable
This fix worked for me. I was trying the same thing but wasn't replacing the -u and I thought I had hit a dead end. Thank you for pointing that out. I can now use the AutoUnwrapUV now!
0 Likes