making a radiobutton menu

20 views
Skip to first unread message

james...@gmail.com

unread,
Sep 24, 2018, 2:08:26 AM9/24/18
to Python Programming for Autodesk Maya
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

Justin Israel

unread,
Sep 24, 2018, 3:10:14 AM9/24/18
to python_in...@googlegroups.com
On Mon, Sep 24, 2018 at 6:08 PM <james...@gmail.com> 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 python_inside_m...@googlegroups.com.
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.

James Kim

unread,
Sep 24, 2018, 4:04:06 AM9/24/18
to Python Programming for Autodesk Maya
I wanted to know how to make it so clicking a radiobutton will give you different options. like this

maya ui menu.jpg

right now im using radioButtonGrp but all i can find are popups. 


On Monday, September 24, 2018 at 12:10:14 AM UTC-7, Justin Israel wrote:
On Mon, Sep 24, 2018 at 6:08 PM <james...@gmail.com> 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 python_inside_maya+unsub...@googlegroups.com.

Justin Israel

unread,
Sep 24, 2018, 5:24:25 AM9/24/18
to python_in...@googlegroups.com


On Mon, Sep 24, 2018, 8:04 PM James Kim <james...@gmail.com> wrote:
I wanted to know how to make it so clicking a radiobutton will give you different options. like this

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 <james...@gmail.com> 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 python_inside_m...@googlegroups.com.

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1ccf1002-e5b4-4aa0-aa5c-d3d93617e1e7%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages