Attribute filtering.

84 views
Skip to first unread message

Darwin Giordano

unread,
Aug 5, 2023, 7:20:31 PM8/5/23
to Python Programming for Autodesk Maya

Here I show you a code that I am making to filter only what is selected from the channelbox to the graph editor, it turns out that I can't stop the filtering after executing kill scriptjob, etc,

I can't get the filtering to stop with the tests I'm doing so I publish as far as I can, it filters the attribute but I can't get it to stop filtering when the user wants it to.
if there is someone who can find another way to this I'm sure many animators would be grateful!
filter.gif

channelbox Selection 1.0.mel

Chris Granados- Xian

unread,
Aug 5, 2023, 7:40:51 PM8/5/23
to python_in...@googlegroups.com
Hi there!

Have you tried deleting the selectionConnection by using deleteUI as the docs for that command indicate?

Never used that command myself, but it sounds like you wouldn't even need the scriptJob if it is a shared selection model.

--
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/b0fd72a0-ddda-403b-9308-2fa9b9cee46dn%40googlegroups.com.


--
CHRIS GRANADOS - Xian
Character Animator- CG Supervisor
www.chrisgranados.com
Cel.: +(54911) 40640097
Tel.: +(5411)  45460877
Bs. As., Argentina

Darwin Giordano

unread,
Aug 5, 2023, 9:40:05 PM8/5/23
to Python Programming for Autodesk Maya
Hi Chris

I don't have solid knowledge to investigate it further, I must stop the investigation here, I've been here for a week now and I have no progress. I appreciate your suggestion, I've been looking around a bit and I'm still in the same place.

Ravi Jagannadhan

unread,
Aug 6, 2023, 11:42:40 AM8/6/23
to python_in...@googlegroups.com
Have you tried replacing the scriptjob with a dummy of the same name that does nothing?

“There are no dumb questions” - Carl Sagan

From: python_in...@googlegroups.com <python_in...@googlegroups.com> on behalf of Darwin Giordano <dg3...@gmail.com>
Sent: Saturday, August 5, 2023 6:40:05 PM
To: Python Programming for Autodesk Maya <python_in...@googlegroups.com>
Subject: Re: [Maya-Python] Attribute filtering.
 

Darwin Giordano

unread,
Aug 7, 2023, 2:05:53 PM8/7/23
to Python Programming for Autodesk Maya

Ravi Jagannadhan, the issue seems to be more complicated to solve, I can't stop the graph editor filtering.

Tim Fowler

unread,
Aug 8, 2023, 8:50:14 AM8/8/23
to python_in...@googlegroups.com
Here's my guess as to what's happening...  I think the filter option you're looking for has been in Maya forever, but there might have been a bug where it didn't work when Maya first starts.  I'm not sure what exactly you have to do to get it to start working, like maybe you can toggle the option in the UI, but the option to sync the graph editor to what the channel box has selected is there.  You probably run your script and it "fixes" the existing Maya option, and then you try to turn yours off and Maya's is now running.  Try turning on/off Maya's option to see if that works, it's in the Channel Box menu: "Sync Selection In Graph Editor".

-Tim

image.png

Darwin Giordano

unread,
Aug 9, 2023, 9:25:34 PM8/9/23
to Python Programming for Autodesk Maya
I've been trying, thanks for the suggestion....
I already gave up the research, it could do more than me, I will go a manual way 2 options on and off 2 buttons in a menu. Then it stops being interactive and goes to something more manual but it works fine.
Reply all
Reply to author
Forward
0 new messages