DETECT THE STATUS OF THE TEXTURES

Like in asset browser: Missing, Network, OK, Found etc

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
artrender.info's picture

also UNKNOWN

mystatus=(ATSOps.GetFileSystemStatus m.filename)[1]
     print mystatus

gives unknown as well

artrender.info's picture

I get UNKNOWN STATUS, and don't know why

fn getmapsfromselection = 
 (
  for s in selection do 
  (
   if s.material!=undefined then 
   (
    newbitmaps=getclassinstances Bitmaptexture target:s.material
                      for b in newbitmaps do 
     if (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
 
   )
  )
 )
barigazy's picture

I'm not in front of my

I'm not in front of my PC.
When you check bitmap path is better to use
 if doesFileExist m.filename do ...

bga

artrender.info's picture

hmm

you mean instead of  if m.filename!=undefined   ????

barigazy's picture

In this thread maybe you can

In this thread maybe you can find how to use ATSOps.GetFileSystemStatus
http://forums.cgsociety.org/archive/index.php/t-986134.html

bga

artrender.info's picture

error

ATSOps.GetFileSystemStatus m.filename

AttachmentSize
status.jpg 168.89 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.