On Mon, Sep 24, 2018, 8:04 PM James Kim <[email protected]> wrote:

> I wanted to know how to make it so clicking a radiobutton will give you
> different options. like this
>
> [image: maya ui menu.jpg]
> right now im using radioButtonGrp but all i can find are popups.
>

Thanks for clarifying.

I don't have any code on hand to share, but the general idea is that you
hook either the changeCommands or onCommands of your radioButtonGrp to a
function that will rebuild another set of controls in a layout. You can
either do this by deleting the previous layout and rebuilding the desired
controls for the selected option, or you can create each layout upfront,
all at once, and set only one of them visible at a time.

Let me know if that is enough to get you going. Maybe someone has time for
an example or I can try and knock something together tomorrow.

Justin


> On Monday, September 24, 2018 at 12:10:14 AM UTC-7, Justin Israel wrote:
>>
>>
>> On Mon, Sep 24, 2018 at 6:08 PM <[email protected]> wrote:
>>
>>> I'm trying to build a tool that does 2 different things to an object. I
>>> am trying to make a UI where if the use selects a radiobutton it will give
>>> different options, kind of like how in convert nurbs to poly window, you
>>> get different options when toggling the tesselation method. I'm sorry if
>>> this is confusing. Thank you
>>>
>>
>> Hi. Do you have a specific question? If you are stuck on your attempt to
>> create a radiobutton, can you show what you have tried and specifically
>> where you are hitting an issue?
>>
>>
>>>
>>> --
>>> 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/55b92d20-3ff8-4e0a-968f-b39ab1eda1e3%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/1ccf1002-e5b4-4aa0-aa5c-d3d93617e1e7%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/1ccf1002-e5b4-4aa0-aa5c-d3d93617e1e7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPGFgA3eeL%3DR9g12khqGCNq8ZXufTzp6NhBfo0AmUgMFy2H9Sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to