Tagged 'General Scripting'

I switch to max 2020 and win10 and I can't move my script window

Hi,
I made some scripts using Rolloutfloater like :
"
(...)
RF = newRolloutFloater "B" 130 620 580 80
addRollout RONE RF rolledUp:true
addRollout RTWO RF rolledUp:true
addRollout RTHREE RF rolledUp:true
addRollout RFIVE RF rolledUp:true
addRollout RSIX RF rolledUp:true
addRollout RSEVEN RF rolledUp:true
addRollout RFOUR RF rolledUp:false
"
I switched to max 2020 and win10.
All scripts work fine, I can open rollouts and use tools, but I can't move the whole window...
A little square appear at the place of the name when I try....

Any idea ? Thanks.

Place form in Viewport

Hello,

For a long time now i trying to find answer to a problem,

TASK : Place a Maxform (dotnet maxform) at the bottom of the active viewport.

PROBLEM : i am not finding a way to get and convert the X Y of viewport to the screen space.

Can anyone please help me out with this.

Here is a link to what i want to achieve

http://www.paulneale.com/tutorials/dotNet/form/index.htm#settingProperties

Conform Script - Point Projection on Surface seems to work strange

Hi Guys, I allready got a great support from the Forum!!! Im working on a Conform Script right know which I plan to use as a modifier. The Problem at the moment ist that the Plane Projection creates strange placing of my vertices. Basicly I search for the three enarest Vertices fro every vertice in my Object. Then I make a Point Projection on theSurface.

fn checkNearestEdge SelectedVerticeID =
(
oV = SelectedVerticeID.pos
pairs = for o in refObj.selectedVerts collect #(length(o.pos-oV), o.index ) --pairs distance and vertexpos
qsort pairs sortByDist --indexes and sorts

Open All groups (and sub-groups)

Hi everybody!

I need to create a script to simplify my work. I need to open all groups in the scene, but it means all sub-groups too (groups inside antoher group). Something like a loop in the command "Select All" and "Group Open", until open all groups, that's what I'm doing manually.
To close is simple, one time command, but to open...
I don't know script, my only experience are recording actions and create scripts with it. Very, very, very basic...

Can anyone help me?

Regards,

Caetano Brasil

How it works? - Time Tracker (a.k.a. I Also Know What You Did Last Summer)

Hello!

I install this script http://www.oferz.com/maxscripts.php#timeTracker
and this for reports http://www.oferz.com/maxscripts.php#timeReporter

I can not get the reports. All reports empty. Can I do something wrong? Does anyone have a tutorial how to work with this script?

Thanks!

MAXScript not responding

MAXScript often stops responding, anyone know why? how to solve? a similar problem?

thanks

Can't edit the “Main Toolbar”

Can't edit the “Main Toolbar”? I
would like to ether delete some buttons from the main toolbar. Or I
have started a new main toolbar but there are some tools unavailable
from the original, such as Selection Filter, Reference Coordinate
System, and so on. I thought all was available via “Customize”

Copy file A to B

I try to copy file from place A to place B, I tough it should be dead easy like
copy from "c:/temp/my.text" to "d:/temp/my.text" but it's not so easy.

Make a 4 vertices poly with 3 selected vertices

Hi

I want to make a new poly face with 4 vertices with 3 selected vertices.
( see pict )

SV = #()
SV = polyOp.getVertSelection $ as array
pt1 = polyOp.getVert $ SV[1]
pt2 = polyOp.getVert $ SV[2]
pt3 = polyOp.getVert $ SV[3]
DIST = pt3 - pt2   --- here
NP =  pt1 + DIST   --- and here
pt4 = polyop.createVert $ NP
append SV pt4
polyOp.createPolygon $ #( SV[1] , SV[2] , SV[3] , SV[4])
redrawViews()

It works in some situation, but as I'm a s### in maths, I don't know how to locate the 4th vertex in space...
If anybody could help. Thanks.

How to select specific vertices on a spline (so I can manipulate them) ?

I've got a very simple shape that I want to write an automated script for.

I want to select the two lowest vertices (they will both be on the same height on the z-axis, say maybe 0), and I want to invert that selection so I have all the other vertices and move those up the z-axis a particular amount.

How can I find my two lowest vertices in my spline?

PS - I am a newbie in MaxScripting and am going through AutoDesk's MaxScript Essentials book, but I can't see it in there.

Many thanks.