Tagged 'General Scripting'

The fastest way to detach elements from 5000 objects

I have a 3gb max file.
There are 5000 objects here
This object is attached
Is there a quickest way to de-detach this

I have used several scripts
computer freezes

Is there a way to separate it from the command line without running max, or is there any other way?

How to select last n-elements of object

Hello,
I'm developing an utility which selects last N-elements definied in the Editable_Poly object.

For example (see attachment): Having an object consisting of 6 attached geometries (6 elements as each primitive is one element). The numbers on the picture represent order, in which the other objects were attached to Original object.

1. In the 'left' scenario, objects were attached from left to right, so the last 4 elements are pyramind, torus, cylinder, sphere.

How to update rollout Spinner based on the object parameters

Hello Guys, I want to ask for some help from the community here,

I’m trying to do some advanced scripting on max but I don’t seem to find the right way to achieve what i would like to.

here is the deal, I have a rollout that replicates some material parameters, (rotation) when I change the spinner values within the rollout they update/reflect in the material editor (rotation), but I’m trying to update/sync my rollout spinner when changes are made into the material editor parameters (rotation) and I cannot get it to work.

Remove path in "Preview Override" of all VrayProxy objects in the scene?

Is there quick script to blank out the Preview Override input field of all VrayProxy objects in the given scene all at once?
https://imgur.com/ERwW16x

Is it possible to wire the parameters of two objects without running the parameter wiring interface ???

Is it possible to wire the parameters of two objects without running the parameter wiring interface ???

path constraint?

I have a hexagon that rotates around a not centered pivot point and I need to keep the green point always on the hexagon but should not move in x direction and it only can move in y direction (go up and down) as the hexagon rotates.
Is this something that can be done through scripting or it can be achieved without scripting?
Thanks,

path constraint?

I have a hexagon that rotates around a not centered pivot point and I need to keep the green point always on the hexagon but should not move in x direction and it only can move in y direction (go up and down) as the hexagon rotates.
Is this something that can be done through scripting or it can be achieved without scripting?
Thanks,

how to understand these concepts such as "dead verts,dead edges,dead faces..."

how to understand these concepts in maxscript reference such as "dead verts,dead edges,dead faces..."

run script on selection

Hi
I am stuck on probably a simple part of my script.
I have the main body of it working perfectly, on a per object basis, but don't know the string to make it work on a selection.
e.g. When I select 1 object (a simple plane) and evaluate the script, it does as expected. But when I select more than one such object (all copies of the same plane) and try to evaluate it, it fails. How can I make it run on more than one object? Many thanks!
Here's the script:

macros.run "Modifiers" "EditPolyMod"
subobjectLevel = 2
$.modifiers[#Edit_Poly].SetSelection #Edge #{}

Maxscript to select radio buttons in the Proboolean Command Panel

I had this code that worked untill 3dsmax 2020, but I can't get it to work now in 3dsmax 2021 (and probablty 2022):

	fn priv_proboolean_Extract_pressRadioButton_2018 rbName state =  (
		local properRb = false
		local BN_CLICKED = 0 																					-- clicky message ID
		local BM_SETCHECK = 241 																			-- checkbutton toggle message ID
		local WM_COMMAND = 273 																			-- windows command message
		local panelName = if((maxVersion())[1] >= 19000) then "MaxSDK::QMaxTabWidgetClassWindow" else "ModifyTask"	--QWidget instead of "ModifyTask"
		max modify mode
Syndicate content