Tagged 'General Scripting'

attach by geometry name

Hi guys can someone kindlt help me do a script that attachs by geometry name?

check if node has transform

I would like to check if some node n has transformation, which means

n.transform!=matrix3 1

Just using != doesn´t work, as far I have read it´s only avaible since max 2018 and I need my script to work with older versions of max.

geting bones from skin modifier

So I want to get all bones from a skin modifier, something like this:

getBones skin

unfortunatelly there is no such function in max, at least haven´t found it. The solution with geting the names of every bone and than searching for the nod with the same name is useless, as names are not uniq and there are defenetly more than 1 node with the same name. So any solution for the problem?

multiple script objects problem

Hi,
I made a little script to "straighten" a spline to have its overall slope.
It works but I want to apply the script to selected splines ( loop ) and then it don't work anymore... Anybody can help ? :-)

BS = selection[1]
BSW = BS.wirecolor
SP = copy BS
select SP
macros.run "Modifier Stack" "Convert_to_Spline"
verts = numKnots SP
NP=SplineShape pos:[0,0,0]
addNewSpline NP
PO = getKnotPoint SP 1 1
addKnot NP 1  #corner #line [0,0,PO.z]
NEWD = 0
for i=1 to (verts-1) do
(
PA = getKnotPoint SP 1 i
PB = getKnotPoint SP 1 (i +1) 
PAF = [PA.x,PA.y,0]

event handler for a custom thumbnails

Hi,

I need help with a dot-net. My frirnd and I are making a custom library image browser using dot-net in max rollout. The thumbnails are showing properly using/loading custom dot-net controls. But we cannot managed to set an event handler when clicking a thumb. we want something like
"on small_dialog clicked sender arg do ()". But the click makes no change

do we need to make an new event and make it public from dot-net? I attached the code and dll as well and a screenshot.

I know partial max-script and he knows moderate dot-net. together we are almost disastrous.

menuMan in 3ds Max 2025

I'm used to install some scripts directly in the Quad Menu but since max 2025 it seems like they've removed "menuMan" functionality, even it's page on the documentation it's gone (I was used to refeer to this: https://help.autodesk.com/view/MAXDEV/2024/ENU/?guid=GUID-258F6015-6B45-... )

Anyone else has encountred this problem or it's just me? And have anybody figured out how to access the quad menu via maxscript?

"while not eof f do" but from the second line

Hi,

I would like to read an external file but not from the first line, from the second one.

Is there a simple way ?

Thanks

Maxscript Cgsociety forums

Hi everybody
Is Cgsociety forums Maxscript section Dead?!
I can't access any page of that forums!!

script for deleting empty layers

Hi guys

I tried to use chat GPT for this simple script as im no progframmer - couldnt get it done.
Can someone know how to create a simple script like this?

Much appreciated - many thanks if someone could help out

vertices dot not showing as circle

Hello,

I am running 3DS Max 2009 and I have been struggling with vertices not showing as circles. my system is Windows 11 and VGA is Nivida 2080.
I have tried everything that I can think of but nothing works if I click the show vertices as circles they show but as soon as I move around the screen or move the mouse they disappear. I have tried the compatibility setting and that didn't work.
so please if anyone can help me with this matter that would be great.

see the attached screenshots
1 when I first open max and create the sphere
2. after going to the edit poly

Syndicate content