PDA

View Full Version : way to query dockControl alighned position


DEVILSAN
11-19-2012, 06:14 AM
is their no way to query on which side of maya's window dockControl is positioned,
I want to rearrange the layout based on what side the dockControl is placed.
for testing I made else block below ,
def dockPosition(self):
if cmds.dockControl(self.winName+"_dock",q=True,aa=True)=="left":
print "Docked in left"
elif cmds.dockControl(self.winName+"_dock", q=True,aa=True)=="right":
print "Docked in right."
else:
cmds.dockControl(self.winName+"_dock",edit=True, width=300)
print cmds.dockControl(self.winName+"_dock",q=True,aa=True)
print "Docked somewhere"

I am calling this function in dockControl in floatChangeCommand, but everytime function gets called the value of alowed area comes out to be all because default is all, so is their any way to query what side dockControl is sticking in maya window ?

Nyro
11-19-2012, 10:02 AM
Query the -area flag, not the -allowedArea flag.

DEVILSAN
11-19-2012, 10:32 AM
dont know what made me think area is not queryable , thanks anyway :wavey:

CGTalk Moderation
11-19-2012, 10:32 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.