Home
Home Profile Portfolio Software Articles Resources Interact Home
Home
 
NikosGatos.com | Online 3D Portfolio

Navigation
/home/software/xsiscripts
Development

Name
nAlignPoints

Version
1.0.0

Type
Custom Command

Language
VBScript

Compatibility
Softimage|XSI 4.0

License
This scipt is provided "as is" and may be used free of charge for any kind of purpose. The author takes no responsibility for any loss of data that might occur due to improper usage or because of bugs in code. Always save your work prior to running this script!

Development

1.0.0
Script released!

MachinePhase 2.0 - Back to 2000 (with a twist)
Info

nAlignPoints
A script that aligns selected points with a target point along a global or local axis. This is actually a modified version of Chris Gardner's cgAlignPoints script. (Hope you don't mind mate!). The main difference between the scripts is that this one doesn't bring up a requester. Instead it allows the user to specify directly which axis to use with the keyboard. This speeds up workflow, especially when assigned to a hotkey.

Installation
Simply Drag-and-Drop the file onto a custom toolbar to register the script with XSI's CommandMap.
or
Run the script straight from the Script Editor. This will however have a negative impact on performance because the command will be echoed in the History Log.

Usage
1) Select points. (Fig.01)
2) Execute the script.
3) A picker appears which lets you specify a target point.
4) Hold down a modifier key (see table) to change axis.
5) With the optional modifier key still held, click on the point and watch as the source points align themselves with the target point! (Fig.02)

Fig. 01

Fig. 02

Options
Left Mouse Button Aligns points with the X-axis

Left Mouse ButtonShift

Aligns points with the Y-axis
Left Mouse ButtonCtrl Aligns points with the Z-axis
Left Mouse ButtonShiftCtrl Aligns points with the XYZ-axis
Middle Mouse Button Aligns points with the XY-axis
Middle Mouse ButtonShift Aligns points with the XZ-axis
Middle Mouse ButtonCtrl Aligns points with the YZ-axis
Middle Mouse ButtonShiftCtrl Switches temporarily to local coordinates and reissues the picker
Right Mouse Button Cancels


Limitations
  The local axis toggle only works if the user clicks directly on a point. It doesn't work elsewhere!
  The script can be VERY slow if run directly from the Script Editor

Download

 nAlignPoints.vbs
Version
1.0.0
Size
6 KB
Date
04-09-20


 

Copyright © 1995-2009 Nikos Gatos. All Rights Reserved.

eXTReMe Tracker