gtafan
@gtafan
New Member
Joined: Feb 15, 2024
Topics: 53 / Replies: 205
Topic
7 years ago
Forum
Replies: 2
Views: 39
Reply
RE: remoove submaterial from multimaterial

Looks like we also forgot about mapEnabled array, so think the code must look so: fn RemoveSubMaterial mtl ID = if isKindOf mtl Multimaterial do ( …

7 years ago
Forum
Reply
RE: remoove submaterial from multimaterial

OK thanks, just to make it more clear, let say I have multimaterial with materialIDList looking like this: (1, 2, 3, 4) and I delete the submaterial w…

7 years ago
Forum
Reply
RE: remoove submaterial from multimaterial

So what´s the diference between ID an index in that code?

7 years ago
Forum
Reply
RE: remoove submaterial from multimaterial

Serejah: fn RemoveSubMaterial mtl ID = if isKindOf mtl Multimaterial do ( index = findItem mtl.materialIDList ID if index > 0 do …

7 years ago
Forum
Reply
RE: remoove submaterial from multimaterial

Sorry people, but I asked how to remoove submaterial from multimaterial, not set submaterial. Remoove specialy means that the number of submaterials w…

7 years ago
Forum
Topic
Forum
Replies: 9
Views: 45
Reply
RE: assignNewName gives not always unique name to material

Codi: I guess you can, if it works for you go for it At least that getAllMaterialNames seems to return all material names.

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

OK, I try it. But cant I change getNewMaterialName to setNewMaterialName that looks something like this? fn setNewMaterialName &mat = ( mat…

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

Sorry, but this solution has 1 problem, it seems not to worck for submaterials.

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

Not shure if I understood you right, but if yes there could be even a bit easier solution. What is that sceneMaterials array? Is it some kind of dicti…

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

Serejah: I guess you need to run this function each time new material is created ( resetMaxFile #noPrompt mat2 = standard name:”Material #25″ assi…

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

Sorry my bad, or to be more precise my bad english. try to change your code to: mat2 = standard name:”Material #25″ mat3 = standard() assignNewName …

7 years ago
Forum
Topic
Reply
RE: backward loop

Thanks, will try it.

7 years ago
Forum
Page 12 / 18