Codi
@codi
New Member
Joined: Feb 15, 2024
Topics: 6 / Replies: 58
Reply
RE: Float script that affects an array of objects?

You can change the function to something like this to create the points on a specific path: function createPathPoints targetPath pointArray = ( for …

6 years ago
Forum
Reply
RE: Float script that affects an array of objects?

I’m not completely sure I understand what you are trying to do but, as I see it, you have two alternatives. One is to create the yellow points as need…

6 years ago
Forum
Reply
RE: Error Unknown property , save me

In MaxScript you can’t create object properties on the fly like that, the material has no “bac” property. If you are trying to add custom data to the…

6 years ago
Forum
Reply
RE: Max refuses connection

I’d check if you have a firewall or antivirus blocking the connection.

7 years ago
Forum
Reply
RE: Gat all 8 vertex of a box without convertion

Documentation is a bit lacking imo, I couldn’t find .mesh property there either. I don’t think box vertices are always ordered the same way… if what …

7 years ago
Forum
Reply
RE: Gat all 8 vertex of a box without convertion

You can try using the box geometry .mesh property. i.g: for v in $.mesh.vertices do print v.pos

7 years ago
Forum
Reply
RE: remoove submaterial from multimaterial

I’m not sure what are you trying to do, the most simple solution I can think of is: fn removeSubmaterial mat id = ( for i = 1 to mat.materialLis…

7 years ago
Forum
Reply
RE: assignNewName gives not always unique name to material

I guess you can, if it works for you go for it

7 years ago
Forum
Reply
RE: assignNewName gives not always unique name to material

In this case you could try to get a list of all the material names by class, this way you get all the materials regardless if they are inside a submat…

7 years ago
Forum
Reply
RE: assignNewName gives not always unique name to material

Oh I see the problem now. assignNewName doesn’t seem to work as the help file says, maybe is a bug? You could use something like this to get a materia…

7 years ago
Forum
Reply
RE: assignNewName gives not always unique name to material

It does work for me: mat2 = standard name:”Material #2″ mat3 = standard() assignNewName mat3 print mat2.name — outputs “Material #2” print mat3.nam…

7 years ago
Forum
Reply
RE: backward loop

I would be: for i = n to 1 by -1 do ( )

7 years ago
Forum
Reply
RE: Array with negative index

Maybe you could use a Dictionary instead? d = Dictionary #integer d[-2] = #(1, 2, 3, 4) d[1] = #(1, 2, 3) d[23] = #(1, 2)

7 years ago
Forum
Topic
Forum
Replies: 0
Views: 15
Reply
RE: Deselecting objects by specyfied modyfiers

You have a couple problems in your code. The first one is that you are looping a list that gets changed during the loop and this causes the script to …

11 years ago
Forum
Page 3 / 5