Tagged 'General Scripting'

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

Why my button doesn't work?

I'm a noob in maxscript. I know I need lot tutorials to watch to start, but now i need this thing to work. please help!!
when I evaluate all then it shows the result in lstener, but it doesnot work under the button.
Thank You.

rollout rollout1 "Untitled" width:162 height:300
(
	button 'btn11' "Button" pos:[38,100] width:88 height:53 align:#left
	on btn11 pressed do
		viewport.GetFOV
)
 
 
 
Floater10 = newrolloutfloater "10" 200 200
 
addRollout 'rollout1' Floater10

character cycle foreward

Hi. I am not scripter just writing some lines for easing walk and run cycles forward.

why to use: 3ds max save load animation sucks at load relative animation for linked object! how to use it: first run the script vcn4.ms from maxscript. then follow the following!:

Let's say you've done a cycle of walking or running. (not in place trademill style! moving forward)
in the script window you can see 6 steps
1- pick controls: pick corresponding controller => click button => click control

How to check if a specific macroscript available

Hello,
I hope you guys are well.
I need help checking if a specific macroscript is available before crashes happen.

when I run this,

macros.run "Poliigon" "PoliigonMaterialConverter"

Its shows this in listener,

-- Error occurred in anonymous codeblock; filename: ; position: 49; line: 1
-- Runtime error: No such macro-script: PoliigonMaterialConverter
-- MAXScript callstack:
--	thread data: threadID:4148
--	------------------------------------------------------
--	[stack level: 0]
--	In top-level
Syndicate content