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

<https://lh3.googleusercontent.com/-X8RbVx1taC8/V4MvgR7KTaI/AAAAAAAAB2E/9TBKVoLUTH4UgSQwzzUyvOyDzMvqOGiQACLcB/s1600/normal.JPG>
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:

<https://lh3.googleusercontent.com/-vIhKjE-vG7M/V4MwQf1HxpI/AAAAAAAAB2M/JFsdhtq4pEkR6NVbN0MhiVmurZcGn91YACLcB/s1600/intersected.JPG>
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!


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/4cbb56c2-c18e-41ee-9803-468fc2603a2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to