Maya seperator intersection in the UI

22 views
Skip to first unread message

yann19

unread,
Jul 11, 2016, 1:45:49 AM7/11/16
to Python Programming for Autodesk Maya
Currently I am encountering an 'intersection' in my UI where its displays changes accordingly to the radio button (choosen by user)

In this first picture, this is how the UI looks like

So if I change the display which is controlled by another section within the UI which is a set of 2 radio buttons, when I toggle it to the other selection, I was given this intersection:

As you can see, it is intersecting with a seperator where it should be above it like in the first picture.

I tried to edit my code to test out layout for this 'Sensibility' and the slider by omitting out the Distance Threshold and its text field, it will work fine. 

As I do not think this is of any concerns to my radio button callback but in the UI itself, I said this because the controls are working despite the UI looking 'funky'..
And thus I suspect it could be how the ui is being coded as it was made using the maya ui layout commands (something that I am having a hard time with it), can anyone kindly point out where is wrong?

The following is the code for the 'Distance Threshold' and 'Sensibility' that was used for the layout:
self.uiTimer = mc.floatSliderGrp(label='Sensibility', field=1, minValue=0.0, maxValue=0.2, fieldMaxValue=1.0, precision=2, vis=False, w=250, cw=[(1, 55), (2, 35)], changeCommand=lambda * args:self.uiFluxCallback("paintTimer", args))
self.uiDistance = mc.floatFieldGrp(label='Distance threshold', precision=2, vis=False, w=250, cw=[(1, 100), (2, 50)], changeCommand=lambda * args:self.uiFluxCallback("paintDistance", args))
self.uiMetricsSep1 = mc.separator(w=250)

mc
.formLayout(self.uiMetricsForm, edit=True,
                        attachForm
=[(self.uiTimer, 'top', 0), (self.uiDistance, 'top', 0)],
                        attachControl
=[(self.uiMetricsSep1, 'top', 5, self.uiTimer), (self.uiMetricsSep1, 'top', 5, self.uiDistance), (self.uiUpOffset, 'top', 5, self.uiMetricsSep1),(self.uiMetricsRampMenu, 'top', 6, self.uiMetricsSep1),(self.uiMetricsRampMenu, 'left', 10, self.uiUpOffset), (self.uiMetricsSep2, 'top', 5, self.uiUpOffset)])

        
Greatly appreciate for any comments in advance!


yann19

unread,
Jul 11, 2016, 6:12:33 PM7/11/16
to Python Programming for Autodesk Maya
I have managed to resolve it
Reply all
Reply to author
Forward
0 new messages