Dimension+ 1.7

Lscript for Lightwave3d



Note: Lightwave is shipped with a plugin called "Absolute size". Assolute size is an almost perfect copy of my plugin Dimension+. But Dimension+ is older than Absolute size. I wrote Dimension+ at the time of Lightwave6.5. So Newtek copied my lscript. They did it without even call me, or say thanks for the idea! I'm very sad about it. They did it also with Aligner+, they simply copied my plugins , make some changes but they never say thanks for that. This is not gentle.
I suggest you to use my plugin the same, because Absolute size is not good with bidimensional objects (you get an "illegal division by zero" error). Also with my plugin you can scale an object based on a selection.
Ahi, ahi ahi, Newtek! Next time you copy my plugin do it the right way! :-(


Dimension+

Description
-----------------------------------------------------------------------
This simple Lscript for Modeler changes the dimensions of an object in the layer specifying the final dimension you want.
Lightwave uses percentages to scale and stretch objects. For example, if you want an object 3 meters wide you would have to try one percentage after another until you find one to reach that size. Instead, with my plugin you just write 3 meters in the X field and the object will be stretched accordingly. You can also change only one or two dimensions. Another option lets you scale the object without changing the proportions.
Another button let you scale your object using a sub-element of the object as reference for dimension.
You can also use it to read the dimension of the object or selection.

Instructions
-----------------------------------------------------------------------
This plugin has been tested on Lightwave7.5c and Lightwave8
Remember: If you don't select anything in the layer, everything will be scaled!
Remember: X is width. Y is height, Z is depth.

1) How do you read the actual dimensions the object has now?
Just run Dimension+. The three values in X, Y, Z fields are the actual
dimensions of the object!
2) How do you change the dimensions of the object?
Write new values in the three fields named X, Y, Z. If you don't want to
change one or two of the three values just don't change them in the
fields! Press OK. The object will change to the new size.
3) How do you change dimensions without losing proportions?
Change only one of the three values in the fields and press the
"maintain proportions" button. Then press OK.

Example: You model a bottle without worrying about the dimensions. Now
you want to resize the bottle to be 20cm tall, but you don't want it
to lose the proportions it already has. Start Dimension+, write 20cm
in the Y field, and press the "maintain proportions" button. Then press
OK! That's all you need to do. The bottle will be 20 cm tall, and the X
and Z dimensions will resize so the overall proportions stay the same.

4) How do you scale an object when I only know the dimensions of a little part of it?
Select the sub-element of the object. Write the new dimension of the selection. Press the button "scale also unselected" e press OK!

Example: You have a model of a building but its dimensions are not correct. You only know that a window of the building is 1 meter tall. Select the window, write 1m in the Y axis. Press the button "maintain proportions", press the button "scale also unselected" and press OK! Now the window is 1meter tall and the other parts of the building are scaled of the same amount. If you deselect all polygons or points and run Dimension+ again you can read the new dimension of the building.

Alignment:
Now it is possible to choose which sides of the objects will not move after the scaling process. For example if you want the bottom of the object that don't move you simply press the - button on Y axis. The object will change its size but the bottom will not move. Very simple to do!

History
-----------------------------------------------------------------------
18/07/08 Version 1.7 Now you need only one Undo to go back to the original dimension.
(Thanks to Gabriele Rescaldani for the modification to the code).
08/01/05 Version 1.6 A bigger panel for people who use SI units
27/10/03 Version 1.5 Rebuild for Lightwave7.5c
28/01/02 Version 1.3 Now you can align the scaled object! You can also scale the unselected polygons and points.
10/01/02 Version 1.2 Now the Lscript will warn you when layer is empty
23/11/01 Version 1.1 Now it is possible to change dimensions also of planar objects
05/11/01 Version 1.0 First release.

Known bugs
-----------------------------------------------------------------------
None so far. Find them and write me!

Future feature
-----------------------------------------------------------------------
Nothing to do.

Disclaimer
-----------------------------------------------------------------------
I am not responsible for the way this plugin is used, or for any loss of information that may be due to crashes caused by this plugin.

Support
------------------------------------------------------------------------
Gianni Soldati
http://www.giannisoldati.com
robotjeeg@hotmail.com

Thanks!
------------------------------------------------------------------------
Thanks to Al Street and Michael A. Barnes for the English translation :-)

Click the icon to download the plugin!

 

Copyright © Gianni Soldati.
No duplication or reproduction without permission.