Scripts
altTerrainBuilder
VueTools
Scripts
Here's a selection of Vue Python Scripts I've created for Vue 6-Infinite. You can place them anywhere you like. If you use them frequently, I'd suggest placing them in the plugins folder of your Vue 6 application directory. These have been tested only on WinXP. Use at your own risk
Check out VueTools
While the scripts below still work, there are improved versions of them along with an included toolbar and other scripts, available at the VueTools website. If you like to model in Vue, you should certainly check it out!
Mirror Scripts
I've created a set of Mirror scripts for mirroring multiple objects and groups.
Here's how they work. MirrorXview takes the currently selected objects and creates mirrored copies of them along the X axis, which in the Top view is Right to Left or Left to Right. It mirrors the objects around the current center of the view. I chose the current center instead of 0,0,0 as it's more flexible that way.
For instance, say you're building a car and you have a right front and back tires in place and wish to mirror them to the left. You first select the car (minus the tires) and click the Frame All Selected Objects button. This sets your viewport center to the center of the car. Now you can zoom out a couple of times (keeping the view center the same) and select the right tires and run the Mirror script and it will copy and mirror them to the Left.
Once this is tested, I'm planning on adding it to the VueHub architecture along with other plugins. I'm planning on making VueHub free for use and for developers as well. More details to come.
MirrorXview
Mirrors selected objects along X-Axis
MirrorYview
Mirrors selected objects along Y-Axis
MirrorZview
Mirrors selected objects along Z-Axis
TestCopyProtected
This script will test your scene for any copy protected Meshes. This is good to know if you want to let someone else try and render your scene (like a Renderfarm).
Currently, it will not check for copy protected textures, nor will it check for copy protected Solid Growth plants.
Move Selected Object(s) to view center
This script will move the selected objects to the existing viewport center. Very helpful for modelling.
Rotate Objects
Here are a family of scripts which will rotate an object about it's center 45 degrees.
There are 6 different scripts:
Rotate Top Clockwise
Rotate Top CounterClockwise
Rotate Front Clockwise
Rotate Front CounterClockwise
Rotate Side Clockwise
Rotate Side CounterClockwise
Each script rotates the selectedobjects based on the viewport you wish them to be rotated by.
RotateFrontClockwise
Rotates Selected Objects 45 degrees in the front view.
RotateFrontCounterClockwise
Rotates Selected Objects 45 degrees in the front view.
RotateSideClockwise
Rotates Selected Objects 45 degrees in the side view.
RotateSideCounterClockwise
Rotates Selected Objects 45 degrees in the side view.
RotateTopClockwise
Rotates Selected Objects 45 degrees in the top view.
RotateTopCounterClockwise
Rotates Selected Objects 45 degrees in the top view.
ScaleAllEqual (OLD)
This script deprecated in favor of the InitScale and AutoScale scripts posted below.
This script created at the request of Wabe. He wanted to scale all his plants relative to another 'already scaled' plant.
Unfortunately, AFAIK, this is not possible, as Vue has no concept of a default scale for objects. They import at whatever scale the author chose to save them at.
But, there is a work around. Primitives, like Cubes, Cones, Spheres and Cylinders (not toruses or planes) are always inserted at a fixed scale value. This can be used to compute other scales. Here's how this script works:
Say you want to insert a tree, scale it up larger, then insert a bunch more trees and bushes and grasses and scale them the same amount.
First, insert the tree, do not scale it. Next insert a primitive: Cube,Sphere,Cone or Pyramid. Select both the tree and the primitive and scale them together to the desired size.
Next import all your other trees and bushes. Select the primitive, then select all the other trees and bushes you want to scale (not the original tree). Run the script. The primitive MUST be the first item selected, or the script will Alert you to select it first.
After you run the script, all of the trees bushes and other objects will be scaled to match the original tree.
You might want to 'hide' the primitive, but leave it in the scene for future modifications. The primitive is a 'record' of the existing scale factor as applied to objects.
Match Scale Scripts
This is a refinement of the ScaleAllEqual script, and has a number of nuances. Wabe wanted to do the following:
1) Load a plant and scale it to fit the scene;
2) Load more of the same plants and scale them automatically to match the first, and optionally drop them to the ground.
So, this requires 2 scripts: InitScale and AutoScale.
InitScale is used after you set the scale for the first object. Then you may select as many other objects you want and apply the AutoScale script. It will use the scale factor of the first object and apply it to the other objects.
NOTE: this does not MATCH the bounding boxes (SIZE) of the object, only each objects relative scale. To understand better, check the Size panel in the Numerics tab. Be sure and turn "Display True Objects Dimension" OFF.
After you are through running AutoScale as much as you like, you can delete the temporary scaler object "AltScalerTempObj", or run the InitScale script again and press NO, which does the same.
InitScale
Select your object AFTER you have resized it and run this script to 'SET' the temporary scaler object. A new Sphere called "AltScalerTempObj" will be created below the ground plane which contains the scale data.
AutoScale
After running InitScale, you can select objects and apply the same scale settings to it by running this script. It will run with mutiple objects and groups.
This does NOT match the objects bounding rect, just sets identical scales.
SuperDrop
Another script inspired by Wabe. This one takes all the selected objects, moves them up really high, then drops them. It will drop them in order of selection.