Docking Panels

46 views
Skip to first unread message

Christopher.

unread,
Jun 10, 2015, 11:16:29 AM6/10/15
to python_in...@googlegroups.com
I want to dock the outliner (MEL). I know there is code online that can do this, I want to do it my way. The following code doesn't work, I'm thinking I have the wrong name for the outliner ?

dockControl -area "left" -content "outliner"

Justin Israel

unread,
Jun 10, 2015, 5:11:30 PM6/10/15
to python_in...@googlegroups.com
string $panel = `outlinerPanel`;
dockControl -area "left" -content $panel;


On Thu, Jun 11, 2015 at 3:16 AM Christopher. <crestchr...@gmail.com> wrote:
I want to dock the outliner (MEL). I know there is code online that can do this, I want to do it my way. The following code doesn't work, I'm thinking I have the wrong name for the outliner ?

dockControl -area "left" -content "outliner"

--
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/0d091b84-8171-425c-97c0-ce91b4b451d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christopher.

unread,
Jun 10, 2015, 7:14:55 PM6/10/15
to python_in...@googlegroups.com
Syntax error, my guess is you need to know the exact outliner window you want to dock, can you find out the name of the window you want to dock ?


On Wednesday, June 10, 2015 at 5:11:30 PM UTC-4, Justin Israel wrote:
string $panel = `outlinerPanel`;
dockControl -area "left" -content $panel;


On Thu, Jun 11, 2015 at 3:16 AM Christopher. <crestchr...@gmail.com> wrote:
I want to dock the outliner (MEL). I know there is code online that can do this, I want to do it my way. The following code doesn't work, I'm thinking I have the wrong name for the outliner ?

dockControl -area "left" -content "outliner"

--
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_maya+unsub...@googlegroups.com.

Justin Israel

unread,
Jun 10, 2015, 7:23:57 PM6/10/15
to python_in...@googlegroups.com
On Thu, Jun 11, 2015 at 11:14 AM Christopher. <crestchr...@gmail.com> wrote:
Syntax error, my guess is you need to know the exact outliner window you want to dock, can you find out the name of the window you want to dock ?

Are you saying my suggestion was a syntax error? 
You do you have to pass it a valid name of your panel.
 


On Wednesday, June 10, 2015 at 5:11:30 PM UTC-4, Justin Israel wrote:
string $panel = `outlinerPanel`;
dockControl -area "left" -content $panel;


On Thu, Jun 11, 2015 at 3:16 AM Christopher. <crestchr...@gmail.com> wrote:
I want to dock the outliner (MEL). I know there is code online that can do this, I want to do it my way. The following code doesn't work, I'm thinking I have the wrong name for the outliner ?

dockControl -area "left" -content "outliner"

--
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.

--
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/32696103-7031-46f9-974b-88781d207f61%40googlegroups.com.

Crest Christopher

unread,
Jun 10, 2015, 8:05:28 PM6/10/15
to python_in...@googlegroups.com
I know, that is what I'm forgetting, how do I find the correct name of the panel, regardless if it has "1" added on it it or not (outliner1 example), that is what I said, how do I find out the name of the window ?

Justin Israel wrote:



On Thu, Jun 11, 2015 at 11:14 AM Christopher.
<crestchr...@gmail.com <mailto:crestchr...@gmail.com>> wrote:

    Syntax error, my guess is you need to know the exact outliner
    window you want to dock, can you find out the name of the window
    you want to dock ?


Are you saying my suggestion was a syntax error?
You do you have to pass it a valid name of your panel.



    On Wednesday, June 10, 2015 at 5:11:30 PM UTC-4, Justin Israel wrote:

  &nbsp ;     string $panel = `outlinerPanel`;

        dockControl -area "left" -content $panel;


        On Thu, Jun 11, 2015 at 3:16 AM Christopher.
        <crestchr...@gmail.com> wrote:

            I want to dock the outliner (MEL). I know there is code
            online that can do this, I want to do it my way. The
            following code doesn't work, I'm thinking I have the wrong
            name for the outliner ?

            dockControl -area "left" -content "outliner"

       &nb sp;    --
            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/0d091b84-8171-425c-97c0-ce91b4b451d6%40googlegroup s.com

            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 python_inside_m...@googlegroups.com

    To view this discussion on the web visit

    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/JoJ8tobERzM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
python_inside_m...@googlegroups.com
<mailto:python_inside_m...@googlegroups.com>.

To view this discussion on the web visit

Justin Israel

unread,
Jun 10, 2015, 8:53:17 PM6/10/15
to python_in...@googlegroups.com
In my example...I created the Outliner panel and saved the name in a string. Then I used the name in the dock command. 

You can list all of the outliner panels:

    getPanel -type "outlinerPanel"


Christopher.

unread,
Jun 10, 2015, 9:01:12 PM6/10/15
to python_in...@googlegroups.com
Thanks !

            To view this discussion on the web visit
            https://groups.google.com/d/msgid/python_inside_maya/0d091b84-8171-425c-97c0-ce91b4b451d6%40googlegroup s.com

            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,

    To view this discussion on the web visit

    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/JoJ8tobERzM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages