Tagged 'General Scripting'

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

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.

Syndicate content