Tagged 'General Scripting'

STICKY - Forum Guidelines

The ScriptSpot community is a place for professional artists, developers, students or others to come discuss relevent topics. Topics which are deemed inappropriate or inflammatory may be removed at moderator disgression. This is an open community, but it is not a place to air our differences - keep on topic and everyone will benefit from the collective knowledge here.

Content that does not adhere to the following guidelines may be removed or edited without warning at moderator disgression:

Floating Smoothing Group Menu For Mesh Objects

Hello,

Is it even possible to have a floating smoothing group menu that works for Editable Mesh Objects? I know poly is generally the king of smoothing, but I was hoping someone had discovered a way to get a nice floating Smoothing groups menu that works on Editable Mesh Objects.

rotation based on position change

Hi everybody,

I need help developing a rotation script driven by an object translation.
it's similar to the degtorad expressions "degToRad(360*(Ypos/(2*pi*Radius)))" but what I need is a "rotation script" to convert the vector calculated from the object translation into rotation and I'm very bad dealing with rotations in Maxscript.

Thanks in advance
Hani Tiby

Vertex Color Swapper

Hi, Does anyone know of a script that will swap vertex colors?
I used one years ago, but can't seem to find it.

I would need to do for example:
swap what is currently blue to green, green to red, or dropdown combinations to pick from...blue to red etc.

I need to swap all current colors..currently i have meshes with Black being base color, Red, Green, Blue.

thx

How to make a script “batch friendly”

Hello fellow members of scriptspot. I use BatchIT by Paul Neale for batch processing max files, I enjoy using it, and highly recommend it. I have a question, as it appears to be an entirely different beast to prepare or format scripts to be used in a batch process. My question, for the most part is this: How would one go about making a script that will search for a given object and then if not found continue the search for the next object, so on and so forth, and then finally delete any of the found objects.

MatchEvaluator

Hi,

Is there a way in MAXScript to use a MatchEvaluator which can be a parameter of the dotnet method Replace (from a dotnetobject/dotnetclass "System.Text.RegularExpressions.Regex")?

press OK btn after copying an object with SHIFT

Is it possible to press ok in script when copying with shift automatically?

fn handleBox =
(
local windowHandle = DialogMonitorOPS.GetWindowHandle()
if (windowHandle != 0) then
(
local title = UIAccessor.GetWindowText WindowHandle
format "\tWindow Title: %\n" title to:f_error
format "\tWindow Body:\n" to:f_error
local children = UIAccessor.getChildWindows windowHandle
for child in children do
(
format "\t\t%\n" (UIAccessor.getWindowText child) to:f_error
)
--local error = UIAccessor.GetWindowDllDescription WindowHandle
UIAccessor.PressDefaultButton()
true
)

Remove QuadMenu items with the MaxScript

There are two Corona items in the QuadMenu permanently - once removed it coming back on next 3ds Max start.

actionMan.executeAction 572340868 "7" -- Chaos Corona: Open Corona Converter
actionMan.executeAction 572340868 "6" -- Chaos Corona: Open Corona Proxy Exporter

Is there any way to have .ms in the scripts/statrup folder to remove both items from the QuadMenu on 3ds Max start?

Make unique object group from multiple Array

Hi All
How to create a unique group of objects from multiple arrays?
This is an example of a known array of layers

 layer1 = #("Sphere001","Sphere002","Sphere003")
 layer2 = #("Box001","Box002","Box003")
 layer3 = #("Tube001","Tube002","Tube003")

then I used the loop method like this with the results I wanted

ObjectGroup= #()
for i=1 to layer1.count do
(
	for x=1 to layer2.count do
	(
		for y=1 to layer3.count do
		(
			groups = #(layer1[i], layer2[x], layer3[y])
			ObjectGroup += #(groups)
		)
	)
)

shift drag edges in editable poly

hi,

im new to maxscripting ... how to make a script for "shift drag edges in editable poly"

thanks

oncire

Syndicate content