PDA

View Full Version : Horizontal sliders in Blendshape window


GrafOrlok
06-23-2003, 06:58 PM
Does anyone have a hack or trick for keeping the Blendshape sliders horizontal in the Blendshape window. You can align them horizontally, but when you re-open Maya they're back in their vertical orientation. Most anoying.

lostpencil
06-23-2003, 11:02 PM
Here is a hack that works for me (make sure you make a backup of your file before you change it).

Go to your Maya 5\scripts\others folder and edit the createBlendShapePanelMenul.mel script. In the global proc createBlendShapePanelMenu after the following line:

string $ma[] = `menuBarLayout -q -menuArray $panelControl`;

add this line:

blendShapeMenuCmd $panel bseMIHoriz;

Hope it helps.

GrafOrlok
06-24-2003, 07:28 AM
Thanks, that worked just fine!

Tell me, there's a couple of lines that makes me curious here. Under the section that starts with
string $itemCmd;

it says:
int $querVal = `blendShapeEditor -q -vs $editorName`;
int $setVal = $querVal;
if($itemName == "bseMIHoriz") {
$setVal = 0;
} else if ($itemName == "bseMIVertical") {
$setVal = 1;
}

Sounds to me that this also would have something to do with how the sliders are lined up..? Any thoughts?

lostpencil
06-24-2003, 03:55 PM
Glad it worked! I think that those lines have to do with which menu item is checked off. For example, I swapped the values 0 and 1 and then noticed that even though the slider remained in the vertical position, the menu item that was checked off was horizontal.

GrafOrlok
06-24-2003, 10:08 PM
Cool.

Well, thx again!

stallion151
06-25-2003, 12:23 AM
lost pencil do you know how to make the dialog boxes where the name inputs go, any bigger. I find that i cant read the names i put in and have checked some of the script but can't seem to find it.

Help would be greatly appreciated.

DiGiman
06-25-2003, 08:41 PM
LostPencil,
this is a bit off subject, but you don't also have a fix for the hypergraph window as well. Everytime you graph the nodes within the hypershade, it defaults to having them all spread out.
I wish it would just leave them the way i put them.

Any help would be appreciated.

lostpencil
06-26-2003, 12:28 AM
Hi Stallion,

Ok, here is a script that will modify the field width in the BlendShape editor for a selected BlendShape node. Use at own risk, it should work fine and modify the field size for all the blend shape targets in a blendshape node. If you have more than one blendshape node, select it and run the procedure on it as well:

http://www.lostpencil.com/temp/adjustBlend.zip

// Usage:
//
// 1) source the mel script file in the command line:
// source adjustBlend.mel
//
// 2) select blendshape node (click on select button in BlendShape Editor
//
// 3) type in the command line:
// adjustBlend(100);
//
// (where 100 is the size of the blend shape name field)

DiGiman, hmmm... I'll take a peek tomorrow and see if I can figure anything out. I don't think this is an easy one.

stallion151
06-28-2003, 04:21 AM
thanks, will try that.
so i'm guessing that there isn't a global size variable in any of the mel files for the blendshape editor...pity.

thanks lostpencil, that was been an slightly annoying problem i was having.

stallion151

CGTalk Moderation
01-15-2006, 11:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.