Also check that the Mesh Renderer has the same number of materials as the mesh. If the model prefab has been broken the materials array won't sync up to what has been last imported. If your model has 3 different materials assigned in Maya, the materials array should have 3 material slots.
Here's a script I wrote that'll do what you're asking. It only works in Editable poly mode (never got around to adding Edit_Poly modifier support), but maybe it'll work for you're purposes: --ASSUMED: in editable poly mode, with one or more borders selected. Edit_Poly modifiers not supported.allEdjs =…
because $ is the same as selection as array. If you have multiple objects selected, $ returns an array of all those objects. Hence you can't access the name with $.name. Also there is a scope issue, as you define folderpath under "on btn_browse pressed" folderpath is local variable, so it is undefined under on btn_export…
Hi guys There's a piece of code i'm not sure how to write. Here's a small example of what i'm trying to achieve: I have two objects. They are parent constraint to each other. I'd like to write a piece of melscript to GET the name of the Parent object and load it into a Variable, if I have the child object selected. I'm…
Hi, I've been trying to copy the alpha value of a selected vert in 3dsmax (via a tool UI) and I'm almost there but something isn't working how I expected. It seems that I need to get the index of that vert in its array and not its ID# ? Here is the code that I have so far for the "Copy Alpha" button; the variable "sV" is…
Here is a usefull script for you to get started which will output your current Object selection in Max into a As3 array. outp= "var array:Array=[";--create a variable container to hold a stringfor i=1 to selection.count do(--for i loop, starts in max always at 1, all arrays are 1+ based local obj = selection[i];--create a…