ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
the only difference, there is doesFileExist function which will skip textures that can actually return #Found (such as the ones that have no path and those where the path is wrong but the file itself is in the (sub)folder of the folder the maxfile is inside)
fn getmapsfromselection =
(for s in selectiondo(if s.material!=undefined then
(
newbitmaps=getclassinstances Bitmaptexture target:s.material
for b in newbitmaps doif(finditem bitmaps_for_selection b==0) then append bitmaps_for_selection b
))for m in bitmaps_for_selection do(if m.filename!=undefined then
(
mystatus=ATSOps.GetFileSystemStatus m.filename
print mystatus
)))
fn getmapsfromselection bmpForSel:&bitmaps_for_selection = ifselection.count != 0 do(for s in selection where s.material != null do(
newbitmaps = getclassinstances Bitmaptexture target:s.material
if newbitmaps.count != 0 do(for b in newbitmaps where (finditem bmpForSel b == 0)do append bmpForSel b
--or u can use this : for b in newbitmaps do appendIfUnique bmpForSel b )if bmpForSel.count != 0 do(for m in bmpForSel where doesFileExist m.filename do(
mystatus = ATSOps.GetFileSystemStatus (m.filename)format"%\n" mystatus
))))
Comments
SOLVED
Thx all who participated!
THE ONLY DIFFERENCE BETWEEN THESE 2 FUNCTIONS
the only difference, there is doesFileExist function which will skip textures that can actually return #Found (such as the ones that have no path and those where the path is wrong but the file itself is in the (sub)folder of the folder the maxfile is inside)
but the problem is with
mystatus=ATSOps.GetFileSystemStatus m.filenameIN THIS FUNCTION
it was array with the textures
ERROR
I get this error
Yep. I don't know what's
Yep. I don't know what's bitmaps_for_selection.
Array variable or something else?
bga
I edited last fn
I edited last fn
bga
EVEN TONS OF IFs don't help
anyway UNKNOWN
THANKS A LOT
BUT ANYWAY I get
#(#UNKNOWN)
#(#UNKNOWN)
#(#UNKNOWN)
In asset tracking I don't have UNKNOWN at all
BUT THIS FUNCTION IS WORKING
I don't know what's the problem!
I clean up code a bit
I clean up code a bit
bga