You have complete freedom to clear the menu or add more items at any time,
but there is no live binding between the number of cameras in the scene and
the menu. You would need to update the menu instance based on some action
or trigger
 On 30/09/2014 10:10 PM, "likage" <[email protected]> wrote:

> okay..
>
> Just one more question then, rather than me spamming another thread again.
> Is it possible for have the QMenu to be 'live-updated'?
>
> The reason I asked this was because, example, when I run the code the
> first time, there is only 1 camera, and while the UI is still not closed, I
> created  another camera but as I click on the setCameraBtn, instead of
> getting 2 cameras, I am still getting back the same camera.
>
>  --
> 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/19726fe9-72a5-4c05-81ed-33713f5cd5e2%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/19726fe9-72a5-4c05-81ed-33713f5cd5e2%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/CAPGFgA3QBVPxtaz-j_TK4f_dVRev3RQbrtX1Tr5q3_8TLC3u8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to