I want to show the the contents of a curve node on the main graphEditor , like when we use F hotkey.
I found a FAQ article about executing the FrameAll; command on the script editor. Just what I needed...except that it was for Maya 2.5.... http://ewertb.soundlinker.com/mel/mel.041.php But that code doesn´t work for me. The final step, doesn´t. Focusing on the +graphEd item, works... but not always. At the end what I did makes sense though... sceds = mc.getPanel(scriptType="graphEditor") for sce in sceds: lbl = mc.scriptedPanel(sce, q=True, label=True) if lbl == "Graph Editor": # The main graph editor not the tear off mc.select("curveName") mc.setFocus(sce+"graphEd") # Necessary? mc.animCurveEditor(sce+"graphEd",e=1, lookAt="select") The last line is basically what fitPanel script does for Graph Editor, if you show all commands when pressing F on it, you see fitPanel and then FrameAll executed. But FrameAll ... i can´t find any .mel file over there to see the contents. I think that´s the piece left... Anybody, ideas? Graph editor is tricky. I just want to press F there programatically. -- Lidia -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAB1%3D8yh%3D0d7hEnu8uaLj3dWUL7Sits0LaynnCxduDbJ4%3DZ%3Dzg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
