Carlos Rico
2018-09-10 18:58:39 UTC
Hi guys, the thing is that as a starting project I would like to recreate a
MEL tool I made with Python and PySide2. It is just a window that has
buttons to open tools, that's all (you can see it in the video attached)
After googling here and there, getting some code from here and there as
well and learning some of the basics I found myself trying to get something
working but I feel like I am not on the right path.
And that is where you come into play guys. I just need some advice and
guidance to focus in the task at hand instead of trying to rush over much
documentation, if you will. I do not ask for code, just want to know where
to invest my time.
The tool I want to create with PySide2 has to be able to read a json where
the button's data is stored (title, command, tooltip, syntax(MEL/Python),
...)
I started getting info here and there and I got where you see in the
Video(by the way the buttons work and open the tools).This is already
reading the data from a json file. Collapsable "frameLayouts" from a
snippet I came across, the famous I guess flowlayout PySide2 example, using
a QCompleter in the filter field (does not filter anything for now), well,
what you see in the video. So my question is, and sorry for the long post,
what do I need to achive my goal?
Do I need a QListView, QListWidget, QItemDelegate, QCompleter? maybe there
is something already created that may serve me as a starting point, I do
not know, or maybe I need something else I do not know yet. Do I need to
sub-class my own widgets? Do I need to use the model/view thingy? As always
I am sure this can be done in many ways. I just need the easier one :)
I'll keep digging, It is just that sometimes you have to realize that the
wheel was already invented.
Thanks in advance. And sorry if this is very vague and you need more
information.
*Carlos Rico Adega*-------------------------------------
<http://www.vimeo.com/16765581> LinkedIn
<https://www.linkedin.com/in/carlos-rico-adega-3250586/>
***@gmail.com
MEL tool I made with Python and PySide2. It is just a window that has
buttons to open tools, that's all (you can see it in the video attached)
After googling here and there, getting some code from here and there as
well and learning some of the basics I found myself trying to get something
working but I feel like I am not on the right path.
And that is where you come into play guys. I just need some advice and
guidance to focus in the task at hand instead of trying to rush over much
documentation, if you will. I do not ask for code, just want to know where
to invest my time.
The tool I want to create with PySide2 has to be able to read a json where
the button's data is stored (title, command, tooltip, syntax(MEL/Python),
...)
I started getting info here and there and I got where you see in the
Video(by the way the buttons work and open the tools).This is already
reading the data from a json file. Collapsable "frameLayouts" from a
snippet I came across, the famous I guess flowlayout PySide2 example, using
a QCompleter in the filter field (does not filter anything for now), well,
what you see in the video. So my question is, and sorry for the long post,
what do I need to achive my goal?
Do I need a QListView, QListWidget, QItemDelegate, QCompleter? maybe there
is something already created that may serve me as a starting point, I do
not know, or maybe I need something else I do not know yet. Do I need to
sub-class my own widgets? Do I need to use the model/view thingy? As always
I am sure this can be done in many ways. I just need the easier one :)
I'll keep digging, It is just that sometimes you have to realize that the
wheel was already invented.
Thanks in advance. And sorry if this is very vague and you need more
information.
*Carlos Rico Adega*-------------------------------------
<http://www.vimeo.com/16765581> LinkedIn
<https://www.linkedin.com/in/carlos-rico-adega-3250586/>
***@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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFzJ14VDu0V--%3DGcP9FYbmEh%2Br8zhsau9xce9_KCCYt8kEebbA%40mail.gmail.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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFzJ14VDu0V--%3DGcP9FYbmEh%2Br8zhsau9xce9_KCCYt8kEebbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.