--
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/CAAB1%3D8ykp%2B-o%2B2-02CmRhWEkMt8DZpnAtxRwBOyFb7%3Dn2Y62%2BQ%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 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/CAAB1%3D8ykp%2B-o%2B2-02CmRhWEkMt8DZpnAtxRwBOyFb7%3Dn2Y62%2BQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/c5473ce8-5560-4bfe-80bc-79a6dad40b58%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/brkbups9XYk/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAHUba0%2BhwAe41cDJpW0PPT9p%3D%2BZKx2Y-c_%2B9y%2BrU7qC_xiNSnA%40mail.gmail.com.
Maybe this put you on the right track:
import maya.cmds as cmds
ge_panel = cmds.getPanel(scriptType='graphEditor')[0]
ge_editor = '%sGraphEd'%ge_panel
cmds.animCurveEditor(ge_editor, e=True, lookAt='selected')
If you want to display a specific animCurve, you’ll have to play with selectionConnections of this editor.
But to get the animCurve displayed in both the graphEditor AND the little associated outlinerEditor, though, you will have to get a path to it, and play with it’s selectionConnection too.
But I could not figure a straightforward way to get this associated outlinerEditor. I had to find the graphEditor1 layout children, and trial and error to get to the outlinerEd…
I had to do things like
ge_layout = cmds.layout(ge_panel, q=True, ca=True)
cmds.layout(ge_layout, q=True, ca=True)
etc… which is ugly.
But I found a way to this little outlinerEditor, and played with its selectionConnection, and it worked...
Nicolas
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAB1%3D8w6LxNzcF7s_zD5Dw18KxOOZyCh1eNYqjkguuoXHodXNQ%40mail.gmail.com.