Substance Painter
In this start to finish texturing project within Substance Painter we cover all the techniques you need to texture the robot character.
# 1 05-10-2015 , 08:09 PM
Registered User
Join Date: Oct 2015
Posts: 1

mel dock control error

Hi guys I am trying to do this dock control, but I am not quite sure if I am doing it right.

if (`dockControl -ex $dockedWindow`)deleteUI -control $dockedWindow;

global string $gMainWindow;
$tabLayout_1 = `tabLayout -parent $gMainWindow `;
$dockedWindow = `dockControl -l "UV_Texture_Editor_Panel" -allowedArea "all" -area "left" -content $tabLayout_1`;
TextureViewWindow;
control -e -p $tabLayout_1 polyTexturePlacementPanel1Window;


Last edited by morhshion; 07-12-2015 at 04:14 PM. Reason: Spellcheck
# 2 07-10-2015 , 02:31 PM
Registered User
Join Date: Jan 2005
Posts: 8
Hi Antonio.

Your script looks like its almost correct. You need to declare your variable $dockedWindow before you start however of you will get a compile error because the variable is undeclared. So your script will look like this:

string $dockedWindow;
if (`dockControl -ex $dockedWindow`) deleteUI -control $dockedWindow;

global string $gMainWindow;
$tabLayout_1 = `tabLayout -parent $gMainWindow `;
$dockedWindow = `dockControl -l "UV_Texture_Editor_Panel" -allowedArea "all" -area "left" -content $tabLayout_1`;
TextureViewWindow;
control -e -p $tabLayout_1 polyTexturePlacementPanel1Window;

It looks like you may have already seen it but there is a good description of docked windows for Maya here:

https://mayastation.typepad.com/maya-...v-usage-1.html

Cheers

Mike

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads