PDA

View Full Version : Arrays in Maya


DragomanJK
03-27-2002, 10:30 AM
is there anyway to check and see if one array has the same info as another?
i.e.
string $blue[4] = 'getPanel -vis';
string $twoview[4] = {"modelPanel1", "modelPanel4"};
if ($blue = $twoview) :wip:
setNamedPanelLayout "Four View";
else
setNamedPanelLayout "Front and Side";

What it is supposed to do is see if they current layout is Front view and side view, if it is then change it to a 4 view, and if it isn't change it to a 2 view.
Is there a better way to make it switch like that??

Thanks for any help

CGTalk Moderation
01-13-2006, 03: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.