doh! thank you very much Justin, one more time :) 2017-07-24 1:33 GMT+02:00 Justin Israel <[email protected]>:
> Using the wrong parameter to modelPanel maybe? > > cmds.modelPanel( perspPanel, edit=True, camera=cameraFound ) > > You were trying to replace it with another panel but providing it a camera. > > Justin > > > On Mon, Jul 24, 2017 at 9:16 AM gnn <[email protected]> wrote: > >> Hello all, >> Is it possible to choose a specific camera in panels? >> i'd tryed this: >> >> perspPanel = cmds.getPanel( withLabel='Persp View') >> cameraFound = 'camera1' >> cmds.modelPanel( perspPanel, edit=True, replacePanel=cameraFound ) >> >> but i've got this error: >> # Error: RuntimeError: file <maya console> line 3: modelPanel: Object >> 'camera1' not found. # >> even if the camera1 exist... >> >> -- >> 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/8a70f2a1-b6cc-44e8-ba93- >> 6062b1a56fc3%40googlegroups.com >> <https://groups.google.com/d/msgid/python_inside_maya/8a70f2a1-b6cc-44e8-ba93-6062b1a56fc3%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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/ElZoOGbP-yE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/CAPGFgA0RrtwzzPzNsynRyaeDvVsUu > MOZ%2BtGmhi8N2OC6hrx42w%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0RrtwzzPzNsynRyaeDvVsUuMOZ%2BtGmhi8N2OC6hrx42w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CALv8LnaFQjg%3DCGrtaOZ--eSQgDaZes%3DJV-gwoiNRuGG6%3Dx7eDA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
