Codi
@codi
New Member
Joined: Feb 15, 2024
Topics: 6 / Replies: 58
Topic
Forum
Replies: 24
Views: 49
Reply
RE: Delete components with a simpleMeshMod

You are welcome Yes, the example of the documentation threw me off too: mesh = mesh + currentMesh –accummulate the moved value into the output mes…

6 years ago
Forum
Reply
RE: Delete components with a simpleMeshMod

I think the problem is that the assignment you do at the end (mesh = curMesh) changes the reference of the original mesh instead of updating it (someo…

6 years ago
Forum
Reply
RE: Getting access to specific digits in file name

If you are sure the shot number will always be on the same position you can use filterString, something like: nameParts = filterstring maxFileName ” …

6 years ago
Forum
Reply
RE: Help a Newbie write a simple script

It should be something like this: (maxfilepath + @”output\” + texture + “_” + cam.name + “.png”) Notice I’ve added “@” before “output\” because the b…

6 years ago
Forum
Reply
RE: Help a Newbie write a simple script

You are building the output file path incorrectly. You should check how maxscript string operations work. (maxfilepath + “Texture” + “_” + “cam.name….

6 years ago
Forum
Reply
RE: Help a Newbie write a simple script

No worries. Yep, render() by default uses most of the render settings of the current scene, but you can override them if you want to. For instance you…

6 years ago
Forum
Reply
RE: Help a Newbie write a simple script

You have to get used to reading maxscript error messages: – Unable to convert: undefined to type: String Means that is trying to combine a “thing th…

6 years ago
Forum
Reply
RE: Help a Newbie write a simple script

I assumed you wanted to use all the cameras on the scene, to specify the names of the cameras you want to use you can do something like this: — Spec…

6 years ago
Forum
Reply
Reply
RE: Help a Newbie write a simple script

Doh, sorry, the problem is that you used the wrong parameter on scenematerials, it should be m = scenematerials[materialName]

6 years ago
Forum
Reply
RE: Help a Newbie write a simple script

OK, I see it now. It seems that the material is not found in the scene, do you have a material named “Material_1” assigned to any object?

6 years ago
Forum
Reply
RE: Help a Newbie write a simple script

I can’t see the error, did you attach an image? You can paste the console output here if uploading images doesn’t work.

6 years ago
Forum
Reply
RE: Help a Newbie write a simple script

I would do something like this: — Specify the name of the material you want to change materialName = “myMaterial” — Get the material by name m = s…

6 years ago
Forum
Reply
Page 2 / 5