Tagged 'General Scripting'

Need help to simplify script for area cropping

This script do perfect job to crop all mesh object in the scene to the rectangle area
Since last versions of 3dsMax allows to Slice Along both X and Y would it be possible to use only two Slice Modifiers which will be located at top-left and bottom-right of the rectangle shape and be applied to all mesh objects in the scene rather then one-by-one?

(

fn shapeFilt o = (superClassOf o == Shape)
rectObj = pickObject prompt:"Pick Rectangle" filter:shapeFilt

if rectObj != undefined then
(

"Array of common values of the non-empty arrays"-question

Hello. I have a question:

I have 4 ui-spinners (which are blank Indeterminate: true) and 4 empty Arrays.
changing a spinner fills up an Array.

for example 3 spinner have a value:

	Marr = #(1,2,3,4,5)
	Rarr = #(3,4,5,6,7,8)  /*just changed */
	Larr = #()
	Tarr = #(4,5,6)

I want to create a 5th Array which contains all the common values of the non-empty arrays

    ComArr = #(4,5)  

with 2 Array i can do:

	ComArr = #()
	If Marr.count >= 1 do (
		Locarr = #()
		for j=1 to Marr.count do (
			N = findItem Rarr Marr[j] 

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

3ds Max to CSV file

"Hi, is there a way to export a CSV file in 3ds Max using a script? The CSV should have two columns: '3D Object Name' and 'Material Name', listing only the file names of the selected 3D objects along with their corresponding material names." Thank you in Advance

CSV example screenshot.

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

Removes 2 verticles splines from the multuiple EditableSpline objects

here is have script which do the job to remove 2-vertices splines from the Editable Spline objects, however I'm failed to make it work on multiple EditableSpline objects selected please help
<code>
fn deleteSplinesWithTwoVerts obj =

(

    if classof obj == Editable_Spline or isKindOf obj SplineShape then 

    (

        subObjectLevel = 1 -- switch to spline sub-object level

        

Object name to Material name

Hi, I need help creating a script. I want the script to create a Standard Legacy Scanline Material for the objects selected in the scene. The material names should match the object names, including objects that have multiple material IDs/names.

How to delete all Helpers with no Children?

Could anyone please help me delete all Point Helper objects in the scene that have no linked objects (Children)? Your assistance would be greatly appreciated. Thank you!

close, delete

close - delete

sorry for multiple posts ... my internet was lagging

close - delete

close - delete

sorry for multiple posts ... my internet was lagging