I think the problem with you first snippet is the lack of parentheses around the code in the for loop: fn changechannel = ( objs = getCurrentSelecti…
This is how I’ve done it in the past: ( firstObj = (objects.count)+1 mergeMAXFile “file path here!” if objects.count >= firstObj do ( last…
“Sphere001” sounds like the Max name of your object. You need to insert a ‘$’ before the name to access it in maxscript. append $Sphere001.modifiers[…
Yes, it could be that. Also it will ignore all maps other than bitmapTexture in the diffuse slot.
oh,unfortunately, “Add CC map to selected objects:” this is invalid,any one can fix it? Why is it ‘invalid’? Do you get an error message?
Thanks for posting your alternative, it’s always useful to see a different approach. My first attempt was to find all bitmapTextures because I starte…
denisT: how is about to make it better with the using of replaceinstances? I’m struggling to see how I can use replaceinstances in this case. Ma…
I don’t know what I’d been smoking yesterday but it didn’t help my already limited maxscript ability Anyway, I’ve simplified them so they should be …
Not a problem, I’m sure many of your posts over on the Chaos forum have been useful to me over the years.
This should work for selected objects: –CC Map in diffuse slot of vray materials on SELECTED objects (should get those inside multiMats, blends etc….
What type are the materials, VRay, standard or …?
Yes case is very useful. There’s a good explanation in the maxscript help. Render elements are no different than any other maxobjects, you can use sh…
You access VRay render elements in the same way you would standard render elements. remCurrent = maxOps.GetCurRenderElementMgr() for i = 0 to remCur…
The variable nnl returned by line: maxOps.cloneNodes SelectedOBJ clonetype:#instance newNodes:&nnl is an array. It might be an array with only o…
isKindOf also compares the second parameter with the superClass of the first so: isKindOf $ light would return true if you have any kind light selec…