Tagged 'Scripts Wanted'

Generating splines between particle positions

Hi, there are scripts which generate splines of particle paths,
but how do i generate a spline between particle positions?

making a spline out of one frame of particle positions?

here is some starting information we could use, i just dont know how to assemble it:

--------------------------------Creating shapes-----------------------------
for i in 1 to numParts do
(
newShp = splineShape()
addNewSpline newShp
newShp.name = (shNm + i as string)
allShps += #(newShp)
)--end For
-------------------Adding Knots to Splines at specified intervals-------------

Creating an ASCII Text file for ArcGIS from existing Terrain

What I need is a MAXScript that will sample an existing terrain on a grid

that is n columns by n rows with a specified interval for each. For

example: 10 columns by 10 rows with 10m between each column and 10m

between each row.

All the script needs to do is start with a point in the upper left hand

corner of the array, project a test ray in the negative Z direction, once

that ray intersects with the terrain below write that elevation along

with the point number to a .txt file and then move the point to the next

Remove duplicated geometries?

I have a map, however some of the geometries are duplicated, how to remove them?

They have the following characteristic:
1. same pivot
2. same texture

so basically everything is the same, thanks!

Change map type?

After selecting a bunch of Bitmap Maps in the Slate Material Editor, I would like to convert them to RGB Multiply maps, keeping the original bitmap in the Color 1 slot.

I enabled the Macro Recorder, but the command it spits out refers to each specific material and bitmap path:
meditMaterials[9].diffuseMap = RGB_Multiply MAP1:( Bitmaptexture fileName:"c:\project\scene\texturefile.tga")

How do I make this more generic?

Create a grid mesh from text file

Hi,
In France IGN give for free some .asc files.
https://geoservices.ign.fr/documentation/diffusion/telechargement-donnee...
This is simple .asc files like :
ncols 3
nrows 5
xllcorner 849997.500000000000
yllcorner 6360002.500000000000
cellsize 5.000000000000
NODATA_value -99999.00
133.00 134.00 135.00
133.00 134.00 135.00
133.00 134.00 135.00
133.00 134.00 135.00
133.00 134.00 135.00
Values are separated by spaces.
In reality, ncols =1000 and nrows=1000
(xcorner, ycorner) is the position of the first point (origine).

Script request- Vray material options rollout/ glossy rays

Hey guys,

first of all thanks for the great content on this site and thanks to the people contributing. I am new here, and have zero scripting experience... but would it be ok to ask for a (hopefully simple) script?

replace geometry only

Hello
I work on Lightwave for modelling and max for rendering....
I convert LW model to max and save. I open master scene file and merge the file.
When I make lot of changes in my model I do it again. But I have already assign material UVW mapping, etc... If I merge or replace my object with the new scene I loose all I did in max.
Is there a way to replace just geometry ?

Sort Batch Render Cameras sequence by camera name

i have so many max files that contains batch render cameras and i need to sort the render sequence alphabetically by camera name. for elaboration check this link: http://www.hm-studios.com/downloads/batchsort.jpg

Select interseptions objects

I need this script:
Large group of object, for example - heaps of rocks on the ground.
One long complicated object, for example - road. This object curved and interesct with many of little objects - this rocks, bush, grass etc.
I need script what select of objects what intersepted with this complicated long objects.
It hard to develop?

sorry my english.

How to change the viewport statistics?

I would like to change the Viewport Statistics to show specific data... Triangle Count, Vertex Count, and Selection.

I review 3ds Max models submitted by outsourcers, so I press 7 to see the stats, but I constantly have to change the settings in Viewport Config to get the stats I need.

Looking through the MAXScript help, there doesn't seem to be a way to change it? The only thing I could find is viewport.GetFPS() but I don't really need the fps.

Maybe it has to be custom text printed to the viewport? See this post: