--
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/02463c0d-1761-463e-8212-d5ab72531334%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So you are saying that when you click the link button, the value from the spinbox is never the one shown in the actual UI? I can understand how that could happen other than you querying a different object that the one you are editing.
You should not need to call update or repaint. Simply changing the value visually should allow you to pull the new value, programmatically.
--
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/62b300ec-e3d5-4cce-b78c-abde53eb355d%40googlegroups.com.
So you are saying that when you click the link button, the value from the spinbox is never the one shown in the actual UI? I can understand how that could happen other than you querying a different object that the one you are editing.
You should not need to call update or repaint. Simply changing the value visually should allow you to pull the new value, programmatically.
On Tue, 15 Mar 2016 6:39 AM Rudi Hammad <rudih...@gmail.com> wrote:
sorry,I meant he value that I get is NOT the one that I put in the ui spinebox--
El lunes, 14 de marzo de 2016, 18:36:08 (UTC+1), Rudi Hammad escribió:sure. I have this code that create my UI
ui code
I want to query the value of the spine box jntNumber = self.ui.joints_spnBox.value()
so, having my environment setup okey, I try the following in the maya python interpreter :
import setupTools_UIs.createRibbon_UI as crUI; reload(crUI)
controlMainWindow = crUI.ControlMainWindow()
controlMainWindow.ui.joints_spnBox.update()
controlMainWindow.ui.joints_spnBox.value()
but the value that I get is now the one that I put in the ui spinebox. it is always the same.
I was trying to update the joints_spnBox, thinking that i would get the new value, but it doesn´t
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.
Then I have no explanation for this behaviour. If you really are querying the same instance of the UI that is visually launched, you should get the currently displayed value.
no,I mean that, I launch my UI. And then, what I want is to query the value of the spinbox of thatsame UI I just opened. So I execute the following line in the script editor:
controlMainWindow.ui.joints_spnBox.value()
El lunes, 14 de marzo de 2016, 19:20:40 (UTC+1), Justin Israel escribió:So you are saying that when you click the link button, the value from the spinbox is never the one shown in the actual UI? I can understand how that could happen other than you querying a different object that the one you are editing.
You should not need to call update or repaint. Simply changing the value visually should allow you to pull the new value, programmatically.
On Tue, 15 Mar 2016 6:39 AM Rudi Hammad <rudih...@gmail.com> wrote:
sorry,I meant he value that I get is NOT the one that I put in the ui spinebox--
El lunes, 14 de marzo de 2016, 18:36:08 (UTC+1), Rudi Hammad escribió:sure. I have this code that create my UI
ui code
I want to query the value of the spine box jntNumber = self.ui.joints_spnBox.value()
so, having my environment setup okey, I try the following in the maya python interpreter :
import setupTools_UIs.createRibbon_UI as crUI; reload(crUI)
controlMainWindow = crUI.ControlMainWindow()
controlMainWindow.ui.joints_spnBox.update()
controlMainWindow.ui.joints_spnBox.value()
but the value that I get is now the one that I put in the ui spinebox. it is always the same.
I was trying to update the joints_spnBox, thinking that i would get the new value, but it doesn´t
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/62b300ec-e3d5-4cce-b78c-abde53eb355d%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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2dcc39d9-d27e-4cac-a00a-5e0cc7957cc8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA29-4fSDPRSW3WR%2BUYv-Qvb2vi41LmmRg0AFmGd-5JZow%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/62b300ec-e3d5-4cce-b78c-abde53eb355d%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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2dcc39d9-d27e-4cac-a00a-5e0cc7957cc8%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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA29-4fSDPRSW3WR%2BUYv-Qvb2vi41LmmRg0AFmGd-5JZow%40mail.gmail.com.
Thanks, that works.
The problem isn’t happening here. Running your code, and adding this to the bottom, works as expected.
myWin.ui.joints_spnBox.setValue(6)
assert myWin.ui.joints_spnBox.value() == 6
It sets the GUI to show the value 6, and retrieves it correctly. I’m on Windows, running Maya 2015.
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/62b300ec-e3d5-4cce-b78c-abde53eb355d%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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2dcc39d9-d27e-4cac-a00a-5e0cc7957cc8%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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA29-4fSDPRSW3WR%2BUYv-Qvb2vi41LmmRg0AFmGd-5JZow%40mail.gmail.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/bd1696a7-4c8c-4138-a5a5-13492c9dbfd8%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/62b300ec-e3d5-4cce-b78c-abde53eb355d%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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2dcc39d9-d27e-4cac-a00a-5e0cc7957cc8%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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA29-4fSDPRSW3WR%2BUYv-Qvb2vi41LmmRg0AFmGd-5JZow%40mail.gmail.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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/bd1696a7-4c8c-4138-a5a5-13492c9dbfd8%40googlegroups.com.