Page 1 of 4 123 ... LastLast
Results 1 to 15 of 54

Thread: Free LScript Pack: Coord Tools - No more writing down coord values!

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

    Arrow Free LScript Pack: Coord Tools - No more writing down coord values!

    Hi all

    I've updated my 'Mirror Stored Pack' to include more useful tools that are "stored coordinate aware" (Download at bottom of this post).

    This pack is now called 'Coord Tools' as it's not just mirroring anymore. It now includes the following scripts, all of which work with the principle of storing the bounding box centre of any selection, be it a single point, edge, poly face or the whole object:

    • Store_XYZ_Coords.ls - Globally store any selections bounding box centre
    • Reset_XYZ_Coords.ls - Reset global coord to 0,0,0
    • Mirror_Stored_X.ls - Fast Mirror across X of global stored coord
    • Mirror_Stored_Y.ls - Fast Mirror across Y of global stored coord
    • Mirror_Stored_Z.ls - Fast Mirror across Z of global stored coord
    • Mirror_Stored_UI.ls - Mirror across global stored coord with options
    • Move_Stored.ls - Fast Move to global stored coord (first point on geometry as datum)
    • Moved_Stored_UI.ls - Move to global stored coord with options
    • Radial_Stored_UI.ls - Radially array using global stored coord for centre
    • Rotate_Stored.ls - Rotate using global stored coord for centre


    Also included is a menu branch (as seen in screenshot) to make it easy for you to import into your config.

    Here's a mini video tutorial showing it in action:

    QT H.264 (38MB Zipped)
    Coord_Tools_Pack_v1.0_Video_Tutorial.zip



    If anyone wants to make their own scripts work with this globally stored coord, use the following code to grab the values:

    Code:
    stored_x = number(globalrecall("stored_x", 0));
    stored_y = number(globalrecall("stored_y", 0));
    stored_z = number(globalrecall("stored_z", 0));
    The '0' can be replaced with any default value you wish if the 'stored_x', 'stored_y', 'stored_z' variables are not present.

    Hope you find them useful!

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


  2. #2
    Steadily declining... wayne1 huffman's Avatar
    Join Date
    Dec 2003
    Location
    Burbank, CA
    Posts
    75
    Sweet! Thanks Matt- what versions will this work with?

  3. #3
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,057
    Quote Originally Posted by wayne1 huffman View Post
    Sweet! Thanks Matt- what versions will this work with?
    Oh now you're asking!

    I guess the only pre-requsite for this to work is the LScript version that brought in the globalstore() and recall() functions. Have no idea when they came in. I have put version 2.3 of LScript in the scripts, but I really should go and check, because that might be higher than needed.

    I guess the easiest thing to do is to try it and see if any errors are thrown up!

    I don't see why it wouldn't work on versions lower than 9.x. They are LScripts, so are platform independant also.
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  4. #4

  5. #5
    inside the beltway Riff_Masteroff's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA, US
    Posts
    634
    Thanks Matt. I just installed and interfaced them. They very well might be quite useful to me . . . have some detailed modeling work to do right now.

  6. #6
    Thanks matt, for sharing. You just answered to this post in some extent =)

    Cheers

  7. #7
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,057
    Quote Originally Posted by probiner View Post
    Thanks matt, for sharing. You just answered to this post in some extent =)
    Seems you and I share the pain of writing down coordinates for stuff!

    It agree with your post though, not only for numeric entry but copy / pasting too (which these scripts) go some way to solve.

    I know it's bad form to plug your own stuff, but I do find these incredibly speedy and useful, and I've found myself using them in allsorts of ways I never intended!

    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  8. #8
    Registered User npix's Avatar
    Join Date
    Apr 2007
    Location
    Craiglang
    Posts
    63
    Much appreciated Thanks!

  9. #9
    This is fantastic tool, something twat LW should have/get years, years ago, I've often wished i could copy/paste X,Y,Z values of POINT info before starting Radial array or mirror tool for many projects but i had to write them down manually on paper/notepad or copy/paste one by one while activating/deactivating array tool (undo after every try).

    Thanks Matt this will help more in everyday modeling sessions .
    RAM-Studio
    WS - Dual Xeon E5-2698v4/128GB/Win10x64/4xRTX 2080Ti
    My LWM Video Car Modeling Tutorial

  10. #10
    the escapist zarti's Avatar
    Join Date
    Mar 2003
    Location
    above the ecuator, then, on the right, but not too much
    Posts
    2,651
    small, but tremendously useful ... even for those who have lwcad. thank you Matt! =)

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

    There does seem to be some oddness happening with the Rotate_Stored.ls script.

    Currently it does this:

    undogroupbegin(); // Group all changes under one undo

    Do rotation stuff

    undogroupend();

    Sometimes it works, sometimes not. Could be the way I've done it, or undogroup functions are bust, not sure.
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  12. #12
    But array and move works fine with using only one UNDO/step.
    RAM-Studio
    WS - Dual Xeon E5-2698v4/128GB/Win10x64/4xRTX 2080Ti
    My LWM Video Car Modeling Tutorial

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

    Arrow Small Update ...

    Make a requested change to the 'Radial_Stored.ls' script.

    Instead of saying '# or Copies' in the UI, it now says 'Total', which makes more sense.

    When you download the attached script, remove the '.txt' from the filename (needed to be able to upload without Zipping it).

    Then replace over the old one.
    Attached Files Attached Files
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  14. #14
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,057
    Quote Originally Posted by Lewis View Post
    But array and move works fine with using only one UNDO/step.
    They work differently because they fire their functions once, the Rotate_Stored.ls one is firing the Rotate command however many times you change it.

    I need to look into it, I'm sure it's possible.
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  15. #15
    Damn, Matt...
    This is soooo sweet!
    Thanks!

Page 1 of 4 123 ... LastLast

Tags for this Thread

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
  •