Merge Edges - MEL

56 views
Skip to first unread message

Christopher.

unread,
May 23, 2015, 11:38:14 PM5/23/15
to python_in...@googlegroups.com
With two opposite edge loops selected, I want to run a script that merges each opposite edge loop to a approx center.  

polyMergeEdgeCtx -mergemode 

I get a invalid flag ?

Justin Israel

unread,
May 24, 2015, 12:16:08 AM5/24/15
to python_in...@googlegroups.com

Invalid flag because flag invalid?

http://download.autodesk.com/global/docs/maya2014/en_us/Commands/polyMergeEdgeCtx.html#flagmergeMode


--
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/6d832236-f0ea-4595-8e42-23ae3325de37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christopher.

unread,
May 24, 2015, 12:29:56 AM5/24/15
to python_in...@googlegroups.com
polyMergeEdgeCtx -mm 1

No more error, it doesn't merge the edges together in the loop ?


On Sunday, May 24, 2015 at 12:16:08 AM UTC-4, Justin Israel wrote:
On Sun, 24 May 2015 3:38 PM Christopher. <crestchr...@gmail.com> wrote:
With two opposite edge loops selected, I want to run a script that merges each opposite edge loop to a approx center.  

polyMergeEdgeCtx -mergemode 

I get a invalid flag ?

--
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,
May 24, 2015, 12:47:57 AM5/24/15
to python_in...@googlegroups.com
Did you want the ctx version of this command, or the one that directly performs the operation?
http://download.autodesk.com/global/docs/maya2014/en_us/Commands/polyMergeEdge.html


On Sun, May 24, 2015 at 4:29 PM Christopher. <crestchr...@gmail.com> wrote:
polyMergeEdgeCtx -mm 1

No more error, it doesn't merge the edges together in the loop ?


On Sunday, May 24, 2015 at 12:16:08 AM UTC-4, Justin Israel wrote:
On Sun, 24 May 2015 3:38 PM Christopher. <crestchr...@gmail.com> wrote:
With two opposite edge loops selected, I want to run a script that merges each opposite edge loop to a approx center.  

polyMergeEdgeCtx -mergemode 

I get a invalid flag ?

--
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/f8f82553-a293-4ee0-881d-06c21782890b%40googlegroups.com.

Crest Christopher

unread,
May 24, 2015, 12:53:24 AM5/24/15
to python_in...@googlegroups.com
Wait, that I don't know, what I mean is what exactly does the ctx version do ? I want the one that directly performs the operation.  PolyMergeEdge / PolySewEdge hrmm ? If I throw in CSS code by mistake, no worries I'm doing both, fyi :)

Justin Israel wrote:

Did you want the ctx version of this command, or the one that directly
performs the operation?
http://download.autodesk.com/global/docs/maya2014/en_us/Commands/polyMergeEdge.html


On Sun, May 24, 2015 at 4:29 PM Christopher.
<crestchr...@gmail.com <mailto:crestchr...@gmail.com>> wrote:

    polyMergeEdgeCtx -mm 1

    No more error, it doesn't merge the edges together in the loop ?


    On Sunday, May 24, 2015 at 12:16:08 AM UTC-4, Justin Israel wrote:

&nbs p;       Invalid flag because flag invalid?


        http://download.autodesk.com/global/docs/maya2014/en_us/Commands/polyMergeEdgeCtx.html#flagmergeMode


        On Sun, 24 May 2015 3:38 PM Christopher.
        <crestchr...@gmail.com> wrote:

            With two opposite edge loops selected, I want to run a
            script that merges each opposite edge loop to a approx
            center.

            polyMergeEdgeCtx -mergemode

            I get a invalid flag ?

     &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/6d832236-f0ea-4595-8e42-23ae3325de37%4 0googlegroups.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/-l067AH9OKo/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,
May 24, 2015, 12:59:17 AM5/24/15
to python_in...@googlegroups.com

The ctx versions are the ones that can start a user interaction to select things before performing the action. The non context calls do the thing directly with the objects you tell it.


Crest Christopher

unread,
May 24, 2015, 1:01:43 AM5/24/15
to python_in...@googlegroups.com
Oh, logical, thanks for the info :)

Justin Israel wrote:

The ctx versions are the ones that can start a user interaction to
select things before performing the action. The non context calls do
the thing directly with the objects you tell it.


On Sun, 24 May 2015 4:53 PM Crest Christopher
<crestchr...@gmail.com <mailto:crestchr...@gmail.com>> wrote:

    Wait, that I don't know, what I mean is what exactly does the ctx
    version do ? I want the one that directly performs the operation.
    PolyMergeEdge / PolySewEdge hrmm ? If I throw in CSS code by
    mistake, no worries I'm doing both, fyi :)

    Justin Israel wrote:


    Did you want th e ctx version of this command, or the one that

    directly
    performs the operation?
    http://download.autodesk.com/global/docs/maya2014/en_us/Commands/polyMergeEdge.html


    On Sun, May 24, 2015 at 4:29 PM Christopher.
    <crestchr...@gmail.com <mailto:crestchr...@gmail.com>
    <mailto:crestchr...@gmail.com

    <mailto:crestchr...@gmail.com>>> wrote:

        polyMergeEdgeCtx -mm 1

        No more error, it doesn't merge the edges together in the loop ?


        On Sunday, May 24, 2015 at 12:16:08 AM UTC-4, Justin Israel
    wrote:

    &nbs p;       Invalid flag because flag i nvalid?


    http://download.autodesk.com/global/docs/maya2014/en_us/Commands/polyMergeEdgeCtx.html#flagmergeMode


            On Sun, 24 May 2015 3:38 PM Christopher.
    <crestchr...@gmail.com <mailto:crestchr...@gmail.com>> wrote:

                With two opposite edge loops selected, I want to run a
                script that merges each opposite edge loop to a approx
                center.

                polyMergeEdgeCtx -mergemode

                 I get a invalid flag ?

    &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
    <mailto:python_inside_maya%2Bunsu...@googlegroups.com>.
       &nb sp;        To view this discussion on the web visit

    <https://groups.google.com/d/msgid/python_inside_maya/6d832236-f0ea-4595-8e42-23ae3325de37%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 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

    <https://groups.google.com/d/msgid/python_inside_maya/f8f82553-a293-4ee0-881d-06c21782890b%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/-l067AH9OKo/u nsubscribe.
    To unsubscribe from this group and all its topics, send an email to
    python_inside_m...@googlegroups.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
    <mailto:python_inside_m...@googlegroups.com>.
    To view this discussion on the web visit


--
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/-l067AH9OKo/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

Christopher.

unread,
May 24, 2015, 2:32:21 PM5/24/15
to python_in...@googlegroups.com
polySewEdge -ws -t 1.3 -n "crsew" 

SewEdge had a threshold flag, I still get a parsing error, with two opposite edges selected, or a loop of edge loops ?

Justin Israel

unread,
May 24, 2015, 3:20:22 PM5/24/15
to python_in...@googlegroups.com


On Mon, 25 May 2015 6:32 AM Christopher. <crestchr...@gmail.com> wrote:

polySewEdge -ws -t 1.3 -n "crsew" 

polySewEdge -ws 1 -t 1.3 -n "crsew"



Does that work?

--
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/820a6af7-76fa-4b6d-8642-2b3abf64c408%40googlegroups.com.

Christopher.

unread,
May 24, 2015, 3:29:49 PM5/24/15
to python_in...@googlegroups.com
I forgot the boolean value for world space, ahh thanks so much :)


On Sunday, May 24, 2015 at 3:20:22 PM UTC-4, Justin Israel wrote:


On Mon, 25 May 2015 6:32 AM Christopher. <crestchr...@gmail.com> wrote:

polySewEdge -ws -t 1.3 -n "crsew" 

polySewEdge -ws 1 -t 1.3 -n "crsew"



Does that work?

SewEdge had a threshold flag, I still get a parsing error, with two opposite edges selected, or a loop of edge loops ?

On Saturday, May 23, 2015 at 11:38:14 PM UTC-4, Christopher. wrote:

With two opposite edge loops selected, I want to run a script that merges each opposite edge loop to a approx center.  

polyMergeEdgeCtx -mergemode 

I get a invalid flag ?


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

Reply all
Reply to author
Forward
0 new messages