hey everyone Im working on script asset management ...I got it all working till I got ClassInstances bitmaptex didnt work with arch_mi material....is there any way to retrieve same result as getclassinstances bitmaptex....raw data that contain all hidden data
btw im workin on max 9 tho....all vraymtl working if i assign texture map to it. the map cathced using getclass instance.
#(Map #2:Bitmap, Map #hall:Bitmap)
somthing like that.
thanks
fajar
Comments (6)
Comment policy
solution
Hi fajar ,
maybe this can help
(
clearlistener()
mapsArr=#()
fn getMtlMaps mtl maps =
(
if mtl != undefined and mtl.numsubs != 0 do
(
for m = 1 to mtl.numsubs where (mtl[m] != undefined) do
(
if (isKindOf mtl[m] SubAnim) and (isKindOf mtl[m].Object textureMap) do append maps mtl[m].Object
getMtlMaps mtl[m] maps
)
)
)
getMtlMaps $.material mapsArr
mapsArr
--for i in mapsArr do print i.filename
)
and
are useful if you need an array with bitmap's filenames (Strings), but not helps to collect instances of BitmapTex objects.
i see,after reading your post i just realized how different they are.
though its getting my job done.i just need to collect bitmap texture.
i am using max 2012 and same problem.specially some vray material and displacement related maps are not found.
so i am using usedmaps() instead.
hehhehhee.....damn...why they? duh....
thanks for the info anubis.
you're in trouble then
as until Max 2011 (where it was fixed) getClassInstances cannot collect all nested class instances.