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

Thread: Free LScript Pack: Mirror Stored v1.0

  1. #1
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,056

    Post Free LScript Pack: Mirror Stored v1.0

    This 'pack' consists of 5 Modeler scripts for aiding quick mirroring of selected geometry around the centre of previously stored coordinates.

    I wrote these because I found myself constantly mirroring geometry on my models based around other parts of it, especially when I needed to mirror off the zero of any axis.

    Previously I did this using another script I wrote that displayed the bounding box centre of any selection, I would then copy the centre coords of the axis I needed and feed it into the LightWave Mirror tool. Obviously this was a waste of time, and could easily be automated, hence these scripts!

    Why not just use the LW mirror, or LWCAD mirror tools?

    The native LightWave Mirror tool was no good to me in certain scenarios because:

    - It doesn't have any snapping capability (for when you want to be very precise)
    - It can be fiddley when the mirror centre is not on the zero of an axis
    - You can only mirror in one axis at a time

    LWCAD has a very good Mirror tool with snapping, but on large, or complex models it can be a little unresponsive at times and can require the need to zoom in to select the geometry to 'snap' around, while a very nice tool, sometimes it's just too involved for simple quick mirrors of geometry.

    The advantages of these little scripts are:

    - Simple to use
    - Good for 'quick mirrors' off the zero of an axis
    - Great for laying out regular geometry patterns by using other parts of your model to store mirror centres
    - Remembers the mirror centre coordinates for repeated mirrors

    They are not meant to be replacements for any other mirror tools, but complementary to them.

    What's in the 'pack'?

    The 'pack' consists of the following scripts (all fully commented in the source):

    Store_XYZ_Coords.ls
    Stores the bounding box X,Y,Z centre of any selected geometry (points, polys, edges)

    Mirror_Stored_X.ls
    Mirrors using the previously stored X axis centre (without dialog)

    Mirror_Stored_Y.ls
    Mirrors using the previously stored Y axis centre (without dialog)

    Mirror_Stored_Z.ls
    Mirrors using the previously stored Z axis centre (without dialog)

    Mirror_Stored_XYZ_Dialog.ls
    For mirrors in more than one axis, this script brings up a dialog box to allow the user to pick which axis to mirror, then mirrors using the previously stored axis centres. The UI displays the stored axis centres to the right of the axis toggles, these are for display only and can't be edited.

    NOTE:
    When using the 'Mirror_Stored_XYZ_Dialog.ls' script, every mirror axis selected uses one undo, as far as I can tell, there is no way around this using LScript.

    Here's a quick movie showing how it can be useful for 'structured' projects like architecural or product design. Quick point, I realise in the movie, the first mirror I do would have been quicker to use the LW mirror tool on the Z axis, but I wanted to show how it could be used.

    http://www.creactive-design.co.uk/te...tored_Pack.mov

    That's it! Hope you find them useful!

    Regards
    Matt Gorner
    Attached Files Attached Files
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  2. #2
    Registered User ShawnStovall's Avatar
    Join Date
    Nov 2005
    Location
    MI
    Posts
    1,229
    Thanks!
    Triboot-

    XP:Work, play, ect.
    Vista:... I don't know.
    Ubuntu: Developing on Linux also...

    Pentium 4 2.8 GH
    GeForce 7600 256 MB AGP 8x
    Driver:163.75(WinXP)
    1 GB RAM

  3. #3
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,056
    Thanks guys!

    Here's another little video which shows it in action a little better!

    http://www.creactive-design.co.uk/te...red_Pack_2.mov
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  4. #4
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,056

    Arrow Update

    Should be dead simple to do, especially as the array command in Modeler is an LScript I can modify!

    Interestingly, looking at that Array script revealed there IS a way to group Modeler commands into ONE undo! So I've added that functionality!

    Grab this small update:
    Attached Files Attached Files
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  5. #5
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,056
    P.S. When you unpack the archive the folder says v1.0, it's not, it's v1.1, but this darn forum time limit to edit your posts is a royal PITA! And I can't change it!
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  6. #6
    Super Member Snosrap's Avatar
    Join Date
    Aug 2004
    Location
    Ohio, USA
    Posts
    4,923
    Hey Matt, These are great little plugs-Thanks!
    Also I love your LW color scheme! Feel like sharing that as well? It's terrific, makes LW look a lot more professional.
    Good job.

    Snosrap

  7. #7
    pass:sword OFF's Avatar
    Join Date
    Feb 2003
    Location
    Russia
    Posts
    1,050
    Great tool!

  8. #8
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,056

    Arrow New: Radial Array Version

    Quote Originally Posted by chunderburger
    thats great, you know just after watching that I was thinking, this idea would be sweet extended to include radial array.
    the ammount of times you want to radial array something round some point.
    eg bolts round a wheel hub.

    cheers
    After some messing about and much frustration, I've managed to get it working.

    Just need to do some tidying up, and then I'll post it.

    In your example of a wheel, the only downside is that the wheel needs to be parallel to either the X, Y, Z axis, depending on which you use, otherwise it will be out of alignment if you had the wheels at say a 45 degree angle. If I could figure out how to radial array around a polygons normal vector I'd be quids in! I'm sure it's possible, but I ain't that good at coding, or maths!

    Here's a video of it in action:

    http://www.creactive-design.co.uk/te...ray_Stored.mov
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  9. #9
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,056

    Arrow

    Quote Originally Posted by Snosrap
    Hey Matt, These are great little plugs-Thanks!
    Also I love your LW color scheme! Feel like sharing that as well? It's terrific, makes LW look a lot more professional.
    Good job.

    Snosrap
    Sure, no problem! Instructions in the ZIP file.
    Attached Files Attached Files
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  10. #10
    eh Mat it is Lscript ? I'm going to be ugly with NT !!! WHAT ARE THEY DOING ALL DAY LONG ? bucket render ?(ahah)

    Thanks Matt !! :-)

  11. #11
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,056
    Yes there're just lscripts, but because they don't do much calculations, just invoke some modeler commands, they're fast enough.
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  12. #12
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,056
    I've done it already! Just need to sort the interface out a little and comment the code for other people to check out.

    Here's the video:
    http://www.creactive-design.co.uk/te...ray_Stored.mov
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  13. #13
    so , the radial one is not in the 1.1pack right?

    thanks for the tools!
    nice!

    mlon

  14. #14
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,056
    Not yet, will post update sharpish!
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  15. #15
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,056

    Arrow UPDATE: Duplicate Stored XYZ Pack v1.2

    Okay, I've added the Radial Array tool to this pack.

    Had a right issue tracking down bugs in the 'Radial_Array.ls' script (the one that comes with LightWave - not the built in function, the LScript) which I was using as a reference.

    In fact, it's a total pile, it doesn't respect selections, and it doesn't even radially array correctly!!!!! (The rotation increment was declared as an Integer which bawked with certain numbers, and hung LW with large duplication copies, I just changed it to a 'Number' variable).

    See below.

    The new pack is attached below, the other scripts haven't changed. As always, here's a video demo of it in action.

    http://www.creactive-design.co.uk/te...Stored_XYZ.mov

    Cheers
    Matt

    P.S. If anyone can come up with a better name for this pack, let me know!
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	LW_radial_array_vs_radial_array_xyz.png 
Views:	236 
Size:	110.2 KB 
ID:	46946  
    Attached Files Attached Files
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


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
  •