Attribute Sliders in PyQt

99 views
Skip to first unread message

Joe Weidenbach

unread,
Oct 31, 2013, 7:59:16 PM10/31/13
to python_in...@googlegroups.com
Hey All,

More of a curiosity at the moment (although I'll rapidly need to find a solution in the next month or so), but has anyone found a better replacement for attribute sliders in PyQt since this post?


Just curious if there's a translation that anyone knows of that lets me hook up a bi-directional channel to have a slider drive an attribute and vice-versa, since it seems like scriptJobs would be clunky on a large scale for this (could be wrong here).  Obviously the UI to attribute hookup is relatively painless (wonderful signals and slots), but what about the attribute to the slider?  I want my animators to be able to use the interface or directly work without it.

Basically, does Maya expose any events when attributes change from the API that I can hook directly into?  Or is that custom plugin territory (or not even that)?

Thanks again,

Joe

Justin Israel

unread,
Oct 31, 2013, 9:14:54 PM10/31/13
to python_in...@googlegroups.com

I still think the MNodeMessage callbacks from the previous thread might be the way to go. That's API based.
Each widget control could manage its life cycle with the callback. That is, if the widget is deleted it needs to clean up its message callback.

--
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/5dc9da50-fa1a-4d1f-8728-7419c14aa272%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Joe Weidenbach

unread,
Nov 1, 2013, 12:37:53 AM11/1/13
to python_in...@googlegroups.com
Fair enough, I'll check it out and report back!  Just thought I'd check since the last post on this (that I could find) was from 2010 :).
Reply all
Reply to author
Forward
0 new messages