Running Unfold3D in standalone

Running Unfold3D in standalone

rkovach
Enthusiast Enthusiast
612 Views
3 Replies
Message 1 of 4

Running Unfold3D in standalone

rkovach
Enthusiast
Enthusiast

I am trying to use Unfold3D in a maya.standalone session, however the command is trying to access the global progress bar and fails.

Since Unfold3D is a separate plugin, the "Unfold3D" is undocumented. 

 

 

RuntimeError: progressBar -edit -beginProgress -isInterruptable true -status "Unfold3D" -maxValue 100 $gMainProgressBar;
Line 1.106: "$gMainProgressBar" is an undeclared variable.
progressBar -edit -status "Collecting data..." $gMainProgressBar;progressBar -edit -progress 1 $gMainProgressBar;
Line 1.65: "$gMainProgressBar" is an undeclared variable.
progressBar -edit -status "Collecting data..." $gMainProgressBar;progressBar -edit -progress 1 $gMainProgressBar;
Line 1.113: "$gMainProgressBar" is an undeclared variable.
progressBar -edit -status "[1/4] Import Data" $gMainProgressBar;progressBar -edit -progress 1 $gMainProgressBar;
Line 1.64: "$gMainProgressBar" is an undeclared variable.
progressBar -edit -status "[1/4] Import Data" $gMainProgressBar;progressBar -edit -progress 1 $gMainProgressBar;
Line 1.112: "$gMainProgressBar" is an undeclared variable.
progressBar -query -isCancelled $gMainProgressBar;
Line 1.50: "$gMainProgressBar" is an undeclared variable.
Unfold3D command failed:
0 Likes
613 Views
3 Replies
Replies (3)
Message 2 of 4

cheng_xi_li
Autodesk Support
Autodesk Support

Hi rkovach,

 

UI commands are not supported in Maya Batch(Standalone) mode. Here is the detail. You'll need to remove UI related commands.

 

Your,

Li

0 Likes
Message 3 of 4

rkovach
Enthusiast
Enthusiast
Unfold3D is a 3rd party plugin licensed by Autodesk for inclusion in Maya. The plugin provides the "Unfold3D" command, but it is this command that is calling the UI. I cannot remove UI related commands, because they are built into the plugin itself.

In order to remove the UI calls, I would need access to the source code and re-compile it myself.
0 Likes
Message 4 of 4

cheng_xi_li
Autodesk Support
Autodesk Support

Hi rkovach,

 

In that case, I am afraid it is impossible to run this command in batch mode. Sorry about that.

 

BTW, I talked with our engineers earlier today. It is possible to check whether Maya is running in batch mode with about -b command and you can create a dummy global proc for progressBar. It might work, but it could cause some issues with this hack.

 

Yours,

Li

0 Likes