Tagged 'General Scripting'

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

TV screen object

Hello.
I need a script that would create a new object, the screen based on the size of the diagonal and the thickness of the frame and depth of the object, the ratio of 16x9 or 16:10. or 4:3.
For example, I enter a diagonal of 55" and a frame of 1cm and a depth of 4cm.
And the script creates a rectangle 1218mm x 685mm, adds 1cm thickness to it and adds 4cm volume.
How can this be done?

Unable to convert: BitMap to type TextureMap

Hi all.
How to convert BitMap to type: TextureMap ?

--------------------------------------------------------------------
displaceBitmapStr = getBitmapOpenFileName caption:"Select displace image file" filename:locDir types:"All|*.*|"

renderWidth = displaceBitmap.width
renderHeight = displaceBitmap.height

displaceBitMap = bitmap renderWidth renderHeight filename:displaceBitmapStr

displaceTextureMap = bitmaptexture.displaceBitMap
--------------------------------------------------------------------

Camera rename

Hi all.

I haven’t used Maxscript in my work for a long time, I forgot a lot...
There is a camera in the scene. It is known that the camera class is Freecamera. I want to rename it using a script.

But that doesn't happen

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
for v in geometry do (
if (classof v == Freecamera) then
(
select v
$.name = "Camera"
)
)
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Select only the containers to update

Hallo everybody!
I have a lot of containers in many scenes. Is there a method for select only the containers witch need to update?

Someone save my life and my brain! Thanks.

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] 

I need a really easy custom 3DS Max script written for me, can anyone help?

I need a script written and I'm looking for some help from you experts out there (I'm sure it'll take you guys literally seconds to write this one :) ).

Here's the design;

a) I have around 100 folders, and in each folder there a varying number of splines between 2 and 10 I'd say in each one.

b) I have a Master_Spline that's to be used as the master path for sweeping each those splines that are in each of those 100 Folders.

Here's what I want the script to do.

Syndicate content