De_Rotate 1.0

Lscript for Lightwave3d (8)

 

De_Rotate 1.0

Description
-----------------------------------------------------------------------
De_Rotate is a plugin for Lightwave8's Modeler. If you have a 3d model freely rotated in space, you can rotate it so that it is aligned to X Y or Z axys.
This plugin is a perfect companion if you often import in Modeler objects from other format (these models usually are strangely rotated in space). You can use it also to correct a wrong rotation when undos cannot help you anymore.

Instructions
-----------------------------------------------------------------------
This plugin has been tested on Lightwave8

Select two or three points of the object in the layer. First two points define the main axys of the object (for example his simmetry axys, or the height, etc.). First point is the back of the object, second point is the front. Third point is optional, if you select it it will define the "up" direction of the object.
Start the plugin and choose the direction that the main axys will be. The plugin will mode the object so that the first point will be on 0.0,0. Then it will rotate the object.
The three points will remain selected after the plugin so that you can easily check if everything was correct. Look a the final position of the three points to understand the use of this plugin.

Example:
You have imported in Lw a 3d model of an airplane flying in the air. You want to rotate the airplane so that it will rest on ground and you want his simmetry restored.
Select three points in this way:
Point1: a vertex on the simmetry axys of the plane and located towards the back (between the engines)
Point2: a vertex on the simmetry axys of the plane and located towards the front (the nose tip)
Point3: a vertex on the simmetry axys towards the up ( the cockpit, a vertical wing etc.).
Start the plugin and choose Z axys in the panel. Now the object is correctly rotated.

History
-----------------------------------------------------------------------
09/12/04 Version 1.0

Known bugs
-----------------------------------------------------------------------
None...I hope!

Future features
-----------------------------------------------------------------------
No one

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

Examples
This is the initial state. The object is freely rotated in space. I select three points of the object. The first two define an axys, the third define the up direction.
This is what happen if I choose X on the panel. The main axys is oriented towards X+.
This is what happen if I choose Y on the panel. The main axys is oriented towards Y+.
This is what happen if I choose Z on the panel. The main axys is oriented towards Z+.
Click the icon to download the plugin!

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