Remograph

Scripts

In order to demonstrate just how easy and powerful the script and macro support in Remo 3D is, we provide a number of free command-line scripts and macros below. Besides showing the advantages of the scripting support, these scripts and macros are definitely useful and will add value to Remo 3D by automating cumbersome and time-wasting manual operations. More scripts will certainly be added, some will be replaced and others will be removed, as the same functionality might be implemented natively in Remo 3D. See more information about scripts and macros in the Remo 3D user's guide.

The scripts and macros are available for free download in the tables below. You can download them one by one, or retrieve all of them in one package. It's however recommended to import only the macros you need for the moment, to avoid filling up the Macros menu in Remo 3D. The scripts and macros are documented both with comments in the scripts and in the tables below.

Note that these scripts and macros are provided as free software. No responsibility is assumed by Remograph for the use of these scripts or the corresponding macros.


Custom Scripts Service

Remograph is available for development of custom scripts and macros, a cost-effective way of letting professionals solve your time-consuming manual editing problems once and for all. Custom scripts and macros can of course be even more complicated and powerful than these examples.

Note that support plan customers are entitled to 20% off standard hourly rates for this service as described in the Support section. Just let us know what problems you need to be solved, or what work you need to be automated to save time and money. Send an inquiry to sales@remograph.com to receive a quote.


All-in-one Package

The file below contains all the scripts and macros. For documentation, see the script comments or the tables below.

Script Name Description Files
All scripts & macros See documentation in tables below. allscripts.zip


Free Command-line Scripts

These scripts can be executed from the command line as arguments to Remo 3D and be part of other scripts or batch files. Here is an example of how to run one of the scripts:

"C:\Program Files\Remo3D\remo3d.exe" fltConvert.lua model.flt model_1570.flt 1570

See more information on how to operate command-line scripts in the Remo 3D user's guide.

NOTE: To download the files, right-click and choose Save Link As... or similar in your browser.

Script Name Description Files
convert.lua Remo 3D command-line script for converting between all model file formats supported by Remo 3D.

USAGE:
convert.lua <input filename> <output filename>

<input filename> is the source model, has to be OpenFlight or format supported for import in Remo 3D.
<output filename> is the target model, has to be OpenFlight or format supported for import in Remo 3D.
convert.lua
flt2txt.lua Remo 3D command-line script for printing nodes as an indented scene graph in a new text file.

USAGE:
flt2txt.lua <model filename> <text filename>

<model filename> is the input OpenFlight model file.
<text filename> is the output text file.
flt2txt.lua
fltConvert.lua Remo 3D command-line script for converting between OpenFlight versions.

USAGE:
fltConvert.lua <input filename> <output filename> <version>

<input filename>; is the source OpenFlight file.
<output filename> is the target OpenFlight file.
<version> is the new OpenFlight version as an integer, e.g. 1600 or 1570.
fltConvert.lua
listExternals.lua Remo 3D command-line script for printing the file names of all external references in a given model file.

USAGE:
listExternals.lua <model filename>

<model filename> is the input OpenFlight model file.
listExternals.lua
listTextures.lua Remo 3D command-line script for printing the file names of all textures in a given model file.

USAGE:
listTextures.lua <model filename>

<model filename> is the input OpenFlight model file.
listTextures.lua
setTextureFilters.lua Remo 3D command-line script for setting minification and magnification filters on a given texture image.

USAGE:
setTextureFilters.lua <texture filename> <minFilter> <magFilter> [magFilterAlpha] [magFilterColor]

<texture filename> is the texture image file, has to be supported by Remo 3D.
<minFilter> is the minification filter given as one of the strings in the corresponding Minfication Filter combo-box in the Texture Attributes dialog in Remo 3D, e.g. MIPMAP_TRILINEAR.
<magFilter> is the magnification filter given as one of the strings in the corresponding Magnification Filter combo-box in the Texture Attributes dialog in Remo 3D, e.g. BILINEAR.
[magFilterAlpha] and [magFilterColor] are optional, see above for instructions. Note that if magFilterColor is given, then magFilterAlpha must be given as well.
setTextureFilters.lua


Free Macros

In order to make a script more user-friendly and appear more or less as a regular Remo 3D tool, it can be wrapped in a macro. A macro will appear in the Macros sub-menu under the Script menu. If a macro takes parameters, they will appear in the tool area to the right together with an Execute button, like a regular tool. If no parameters are defined, the tool will be executed immediately.

A macro is imported into Remo 3D by choosing Script -> Macro Editor -> Import... and selecting the corresponding macro configuration .cfg file. The macro will then be available from the Script -> Macros menu. This is saved in your personal configuration, so it will still be there the next time you start Remo 3D.

See more information on how to import and operate macros in the Remo 3D user's guide.

NOTE: To download the files, right-click and choose Save Link As... or similar in your browser.

Script Name Description Files
box.lua Script for creating a box, exposed in Remo 3D as a macro with the box.cfg file.

PARAMETERS:
Size: Side length
Shaded: True if shaded
box.lua
box.cfg
cone.lua Script for creating a cone, exposed in Remo 3D as a macro with the cone.cfg file.

PARAMETERS:
Radius: Radius of base disk
Height: Height of the cone
Segments: Number of segments of base disk
Shaded: True if shaded
cone.lua
cone.cfg
createBlueprintBox.lua Script for creating temporary geometry with given blueprints as base for modeling, exposed Remo 3D as a macro with the createBlueprintBox.cfg file.

PARAMETERS:
Cross: True if cross-type, false if box-type
Length: Model length (Y direction)
Width: Model width (X direction)
Height: Model height (Z direction)
FrontImage: File name of front blueprint image
RearImage: File name of rear blueprint image
LeftImage: File name of left blueprint image
RightImage: File name of right blueprint image
TopImage: File name of top blueprint image
BottomImage: File name of bottom blueprint image

NOTE: If rear image is not given, the front image will be used for the front. The same applies to the left and right images, as well as the top and bottom images.
createBlueprintBox.lua
createBlueprintBox.cfg
cylinder.lua Script for creating a cylinder, exposed in Remo 3D as a macro with the cylinder.cfg file.

PARAMETERS:
Radius: Radius of base disk
Height: Height of the cylinder
Segments: Number of segments of base disk
Shaded: True if shaded
cylinder.lua
cylinder.cfg
eliminateDoubleVertices.lua Script for removing all consequtive vertices with identical coordinates in all polygons in the selected geometry (or if none selected, in the complete model), exposed in Remo 3D as a macro with the eliminateDoubleVertices.cfg file. eliminateDoubleVertices.lua
eliminateDoubleVertices.cfg
pyramid.lua Script for creating a pyramid, exposed in Remo 3D as a macro with the pyramid.cfg file.

PARAMETERS:
Base: Side Length of base square
Height: Height of the pyramid
Shaded: True if shaded
pyramid.lua
pyramid.cfg
selectChildren.lua Script for selecting the children of the currently selected nodes (moving the selection one step downwards), exposed in Remo 3D as a macro with the selectChildren.cfg file. selectChildren.lua
selectChildren.cfg
selectConcavePolygons.lua Script for selecting all concave polygons beneath the currently selected node (or if none selected, in the complete model), exposed in Remo 3D as a macro with the selectConcavePolygons.cfg file. selectConcavePolygons.lua
selectConcavePolygons.cfg
selectEmptyPolygons.lua Script for selecting all polygons without vertices beneath the currently selected node (or if none selected, in the complete model), exposed in Remo 3D as a macro with the selectEmptyPolygons.cfg file. selectEmptyPolygons.lua
selectEmptyPolygons.cfg
selectNonPlanarPolygons.lua Script for selecting all non-planar polygons beneath the currently selected node (or if none selected, in the complete model), exposed in Remo 3D as a macro with the selectNonPlanarPolygons.cfg file.

PARAMETERS:
Tolerance: Tolerance used when measuring distance from plane to vertex.
selectNonPlanarPolygons.lua
selectNonPlanarPolygons.cfg
selectParents.lua Script for selecting the parents of the currently selected nodes (moving the selection one step upwards), exposed in Remo 3D as a macro with the selectParents.cfg file. selectParents.lua
selectParents.cfg



Back to top

Our company is credit worthy according to Soliditet's credit assessment system that are based on a number of decision rules. This credit rating is updated on a daily basis, and always shows the current rating and date.