David_Lee
- 10 public contributions
- Member since
- Latest contribution Feb 2014
Change ImgTag bitmap source
Forum topic
Hi all I made a dialog using ImgTag to place a bitmap on it. Is there a way to change the bitmap used for the ImgTag, choosing it on a dropdownlist? Here is my try: rollout progressTest ("Choose Logo!") ( local bm001 =…
8 commentsVRay output_fileName seems doesn't work
Forum topic
Hi all I'm trying to drive some VRay Render options via MaxScript, but I have some problem with output_fileName string. here is my code: vr = renderers.current vr.output_on = true vr.output_saveFile = true vr.output_fileName =…
1 commentretrieving original path of missing bitmap
Forum topic
mat = $.mat for prop in (getPropNames mat) do ( if (superclassof (getProperty mat prop)) == texturemap do ( tex = (getProperty mat prop) for item in (getPropNames tex) do ( if item == #filename do ( print (getProperty tex item) ) ) ) )…
5 commentsDe-Instance materials
Forum topic
I need to rename all the SubMaterials in scene adding a "Sub_" prefix. To doing this, I wrote a simple script: for o in sceneMaterials do ( if (classof o == Multimaterial) then ( for i in o.materialIdList do ( try ( subo = o[i] subo.name =…
5 commentsPrint error details to file
Forum topic
If I run a wrong line, in the listener I can see the error details. But if the wrong line is under a Try function, the listener doesn't show me the error. Using throw() solve this problem showing the error details in the listener... but if…
8 commentsRemove Environment map issue
Forum topic
I have a scene with some objects and materials. In the scene I have also a bitmap as Environment Map. Opening the Map Browser, at the Scene Material tab I can see the list of all materials in scene, environment map included. In the script…
1 commentundefined bitmap value for missing bitmap in scene
Forum topic
I'm working on a script that write a text file where collect all the bitmap path for each material in scene. What I've done for now seems to works well, but only if all the maps are in some known folder. If a material has a missing…
8 commentsgetFaceSelection doesn't work as expected
Forum topic
I'm trying to select only faces with material ID = 1 in my object. 512 is the total number of the object 381 is the number of faces with mat ID = 2 131 is the number of faces with mat ID = 3 so I wrote this: $.selectByMaterial 2 polyList =…
1 commentCheck for double names and rename them
Forum topic
I'm looking a way to check if there are objects with the same name and rename them to make all objects in scene with a unique name. Any idea?
5 commentsGet Material Properties
Forum topic
Hello I'm new in max scripting and I'm trying to get a list all the material properties of the selected object. This is my first attempt... for prop in (getPropNames $.material) do ( getProperty $.material prop ) ...but no property were…
3 comments