Page 1 of 2 12 LastLast
Results 1 to 15 of 24

Thread: multi_weld and multi_weld2 LScripts

  1. #1
    WIP'd up GruvSyco's Avatar
    Join Date
    Feb 2003
    Location
    Northern California
    Posts
    249

    multi_weld and multi_weld2 LScripts

    Here are a couple of LScripts I made. Still pretty new to this scripting thing (I think this is day 5) but maybe you guys can use these.

    multi_weld was suggested by Remi and and multi_weld2 is a modification for that script based on suggestions by TripleG that uses David Ikeda's Select Loop.

    Hope you enjoy, docs are include in pdf format.
    Attached Files Attached Files

  2. #2
    yeah! u amde that at day 5! very nice!
    i can't wait what u are going to do in the futur.
    good luck-

  3. #3
    WIP'd up GruvSyco's Avatar
    Join Date
    Feb 2003
    Location
    Northern California
    Posts
    249
    Thanks dude, I'm glad you like it.

  4. #4
    WIP'd up GruvSyco's Avatar
    Join Date
    Feb 2003
    Location
    Northern California
    Posts
    249
    Here is the forumized version of the docs:

    multi_weld.ls



    Select points sequentially around the surface in this manner. Run multi_weld.ls to weld up the points.



    multi_weld2.ls



    Select 2 points on first surface and use DI's Edge Loop.



    Shift select 2 corresponding points and use DI's Edge Loop.


    Run multi_weld2.ls to weld up the points.


    Lastly, these are available as standard LScripts so, the noobs can be in awe of my mad programming skillz and the pros can get a good laugh at them .

  5. #5
    WIP'd up GruvSyco's Avatar
    Join Date
    Feb 2003
    Location
    Northern California
    Posts
    249
    And for those hesitant to download the zip file:

    multi_weld.ls

    //--------------------------------------------------
    // Multi_Weld - for sewing up a selection of points.
    // LScript for Remi by GruvScyo.
    // 09/29/03
    //
    // Select points sequentially.
    // Script welds point 1 to point 2 and,
    // repeats thru the selection (3 to 4, so forth).
    //--------------------------------------------------

    @version 2.2
    @warnings
    @script modeler

    main
    {
    selmode(DIRECT);
    pntCnt = pointcount();
    if (pntCnt <2) {error("Please select at least 2 points");}

    editbegin();
    x = 1;
    y = 2;

    while (x < pntCnt)
    {wldPnt = pointinfo(points[y]);
    pointmove(points[x],wldPnt);
    x=x+2;
    y=y+2;}
    editend();

    mergepoints();
    }




    multi_weld2.ls

    //--------------------------------------------------
    // Multi_Weld - for sewing up a selection of points.
    // LScript for Remi and TripleG by GruvScyo.
    // 09/29/03
    //
    // Select points sequentially on each edge.
    // using Ikeda's edge loop between each edge
    // select matching points on each surface.
    //--------------------------------------------------

    @version 2.2
    @warnings
    @script modeler

    main
    {
    selmode(DIRECT);
    pntCnt = pointcount();
    if (pntCnt <2) {error("Please select at least 2 points");}

    editbegin();
    x = 1;
    y = (pntCnt/2)+1;
    while (y <= pntCnt)
    {wldPnt = pointinfo(points[y]);
    pointmove(points[x],wldPnt);
    x=x+1;
    y=y+1;}
    editend();

    mergepoints();
    }

  6. #6
    Insert Cleverness Remi's Avatar
    Join Date
    Mar 2003
    Location
    Cold Country, MN
    Posts
    140
    Everybody keep an eye on this guy...he's my new personal script writer....hehe....great job gruv you know you rock...I don't have to tell you........talk to you now
    Last edited by Remi; 09-30-2003 at 04:26 PM.
    __________________________
    Ryan "Remi" Hagen
    Animator
    Keyframe

  7. #7
    it's always amazing to see how simple these scripts look...

    How long did it take you to learn to do this?

    Great script btw.

    Jay

  8. #8
    WIP'd up GruvSyco's Avatar
    Join Date
    Feb 2003
    Location
    Northern California
    Posts
    249
    Originally posted by sketchyjay
    it's always amazing to see how simple these scripts look...

    How long did it take you to learn to do this?

    Great script btw.

    Jay

    Not too long... I started on this scripting thing late Friday night. I had a mostly functioning first script the following day.
    I showed that to Remi on Monday and he said.... "you know what would be cool" and gave me the idea for the first script above... I knocked that out in a couple of hours.
    I then showed it to TripleG and he said "you know what would be even cooler" and I knocked the next script out in about an hour.

    I haven't done much programming in the last 15 or so years (other than a little ColdFusion). It's pretty easy to pick up but would be much easier with some better docs.

    Oh, and thanks

  9. #9
    hey very cool, send the links on to Flay.com when your done.

  10. #10
    UltramegaOK Triple G's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, CA
    Posts
    426
    Great work, man...these are awesome scripts, especially for someone new to LScript! But, I've already told you that, so I'll stop complimenting you before your head gets too big with delusions of grandeur...

    Oh, and Remi....I think you and me are gonna hafta wrassle...he's my personal script writer...
    Gregg Domain
    Visual Effects Artist
    www.greggdomain.com
    -----------------------------
    Get Into Adobe After Effects

  11. #11
    WIP'd up GruvSyco's Avatar
    Join Date
    Feb 2003
    Location
    Northern California
    Posts
    249
    Originally posted by riki
    hey very cool, send the links on to Flay.com when your done.

    Hey thanks riki. I don't think they are very Flay worthy though. Just me screwin around. Also I can't really host them myself. Just the hits I'm getting from this little thread alone are bogging me down.

  12. #12
    WIP'd up GruvSyco's Avatar
    Join Date
    Feb 2003
    Location
    Northern California
    Posts
    249
    Originally posted by Triple G
    Great work, man...these are awesome scripts, especially for someone new to LScript! But, I've already told you that, so I'll stop complimenting you before your head gets too big with delusions of grandeur...
    Hehe... thanks man. I appreciate the input you gave.

    Originally posted by Triple G
    Oh, and Remi....I think you and me are gonna hafta wrassle...he's my personal script writer...
    Well... judging by avatars...

  13. #13
    WIP'd up GruvSyco's Avatar
    Join Date
    Feb 2003
    Location
    Northern California
    Posts
    249
    I just found out CMan has some very similar scripts... you should check his too.

  14. #14
    ye, multimerge is nonmodal one!
    but the possiblity to use your Lscript after Di2_SelectLoop can be time saver. Now, u can learn how to do nonmodal!

    here an example:
    it's a smooth script.


    c2; c3; t2 =0; t3 = 100; firstime = 0;

    main
    {
    selmode(USER);

    reqbegin("[email protected]");
    c2 = ctlminislider("Strength",t2,0,100);
    c3 = ctlminislider("Iterations",t3,0,100);

    ctlrefresh(c2,"GotoSmooth");
    ctlrefresh(c3,"GotoSmooth");

    if(reqpost()) {
    }
    else {
    undo();
    return;
    }

    reqend();
    }


    GotoSmooth: Null
    {
    t2 = getvalue(c2);
    t3 = getvalue(c3);
    t3 = (t3)+0.01;
    t2 = (t2/10)+0.01;

    if (firstime == 1){
    undo();
    }

    else
    {
    firstime = 0;
    }


    smooth(t3,t2);

    firstime = 1;

    }


  15. #15
    WIP'd up GruvSyco's Avatar
    Join Date
    Feb 2003
    Location
    Northern California
    Posts
    249
    Wow... thanks for that little script... I'll try to work through it. I'm going to dare to show my newbishness and ask "Modal, Non-Modal?"

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •