Re: [Maya-Python] PySide UI for custom Node....what strategy to adopt ?

238 views
Skip to first unread message
Message has been deleted

Timm Wagener

unread,
Jun 7, 2015, 4:29:38 PM6/7/15
to python_in...@googlegroups.com

Hi,

I have the feeling that it's probably (unadvisably) hard to navigate around AETEMPLATE scripts  for custom attr. Editor layouts. But you can use a custom AETEMPLATE written in Melscript as the entry point for your pyside code and build the ui from there on. There is a tutorial from Dan ostrov that might give some good hints
http://danostrov.com/2012/10/27/building-aetemplates-with-pyqt/

In general aetemplate scripts are about the only occasion where I need to write mel, and I feel like it is amongst the weakest spots in maya scripting. An easy and pythonic system here would result in a great amount of diverse user modified guis with pysides  rich widget library, I guess.

Cheers,
Timm

On Jun 7, 2015 9:25 PM, <grie...@gmail.com> wrote:
Hello,

i have a custom node that is not "easy" to work with because it contains around 60 attributes that in some case i don't need to edit a lot of them, and the naming and ordering could be more intuitive and user friendly.

So i want to make a Pyside UI to handle that node, and i'm not sure what would be the better strategy to go for.
Here are the requirements i need to fulfil:

- Custom grouping and ordering of attributes.
- For each attribute, replace the name by a custom one
- For each attribute a bouton to show/hide, a bouton to lock, some other custom functions.
- UI and node in sync.

QTableWidget doesn't seems to be a good choice, as i need a lot of control and extra functionnality.
What about making a custom widget class that handle every features, then each attributes would be an instance of that class. Then i work my way with nested wigets and layouts ? Seems a lot of work no ?

Do you guys have some suggestions and advices for good practice for this kind of situation ?

Thank you all.


--
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/5d3415fd-27af-4444-bf92-a177ee38d0fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sloG

unread,
Jun 8, 2015, 2:42:13 AM6/8/15
to python_in...@googlegroups.com, grie...@gmail.com
Hi Timm,

thanks for the advices and the link to Dan Ostrov website,great infos there.
Never touched AETEMPLATE, so i'll have a closer look to them.
Seems that you can avoid mel and use pymel to make the initial setup:
https://groups.google.com/forum/#!topic/maya_he3d/D832nqS5lo8

Cheers.

Timm Wagener

unread,
Jun 8, 2015, 4:45:22 PM6/8/15
to python_in...@googlegroups.com, grie...@gmail.com
Kool, will have to check that out! :)

--
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.

For more options, visit https://groups.google.com/d/optout.



--
Timm Wagener
Technical Artist / 3D Generalist

www.timmwagener.com

Email:
wagen...@gmail.com

Phone:
0178-2810920


Reply all
Reply to author
Forward
0 new messages