Announcement

Collapse
No announcement yet.

TXT map list

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TXT map list

    Is there a way to create a .txt file of all the maps that your scene?
    - Geoff

  • #2
    doesn't MAX's archive feature do that for you?
    Bobby Parker
    www.bobby-parker.com
    e-mail: info@bobby-parker.com
    phone: 2188206812

    My current hardware setup:
    • Ryzen 9 5900x CPU
    • 128gb Vengeance RGB Pro RAM
    • NVIDIA GeForce RTX 4090
    • ​Windows 11 Pro

    Comment


    • #3
      Hmm. Dunno. Never used it. I'll check it out.
      - Geoff

      Comment


      • #4
        Actually, that only makes a list of the files that it found. I want to generate a list of all the bitmaps Max can't find. Basically I just want to make a txt file of the Asset Tracker.
        - Geoff

        Comment


        • #5
          Or even just list them in the Listener so that I can paste it into an e-mail.
          - Geoff

          Comment


          • #6
            Run this piece of crap:

            Code:
            MyOutFile = "c:\\scene_texture_list.txt"
            ThetextFile = CreateFile MyOutFile
            (
            
            local mapfiles=#()
            
            fn addmap mapfile =
            
            (
            
            local mapfileN=mapfile as name
            
            local index=finditem mapfiles mapfileN
            
            if index == 0 do append mapfiles mapfileN
            
            )
            
            enumeratefiles addmap --line 9
            
            sort mapfiles
            
            for mapfile in mapfiles do 
            (
            	format (mapfile as string) to:ThetextFile
            	format ("\n") to:ThetextFile
            
            )
            )
            
            Close ThetextFile
            ShellLaunch (MyOutFile as string) ""
            Based on an example in the max help.

            Comment


            • #7
              Thanks John. That gives the same result as the Archive thing, though. :/

              Man, I never thought this would be so difficult.
              - Geoff

              Comment


              • #8
                Colin Senner's Relink Bitmaps script will print a list of missing texmaps for you. I'm fairly sure it will also pickup Vrmesh files and things like that, but it will track the *missing* images for you anyway.

                /b
                Brett Simms

                www.heavyartillery.com
                e: brett@heavyartillery.com

                Comment


                • #9
                  Originally posted by YoyoBoy View Post
                  Or even just list them in the Listener so that I can paste it into an e-mail.
                  ATSOps.ClearSelection()
                  atsarr = #()
                  ATSOps.Refresh()
                  ATSOps.GetFiles &atsarr
                  for atsfile in atsarr where (ATSOps.IsInputFile atsfile) == true do
                  (
                  if (getFiles atsfile).count == 1 then
                  (
                  print ("found: " + atsfile)
                  )
                  else
                  (
                  print ("missing: " + atsfile)
                  )
                  )

                  But it only works with absolute paths not with relative.
                  Last edited by scheinbarreal; 10-08-2011, 11:57 PM.

                  Comment


                  • #10
                    Ah sorry, didn't read the second line where you mentioned missing:

                    Code:
                    MyOutFile = "c:\\scene_texture_list.txt"
                    ThetextFile = CreateFile MyOutFile
                    (
                    
                    local mapfiles=#()
                    
                    fn addmap mapfile =
                    
                    (
                    
                    local mapfileN=mapfile as name
                    
                    local index=finditem mapfiles mapfileN
                    
                    if index == 0 do append mapfiles mapfileN
                    
                    )
                    
                    enumeratefiles addmap #missing --line 9
                    
                    sort mapfiles
                    
                    for mapfile in mapfiles do 
                    (
                    	format (mapfile as string) to:ThetextFile
                    	format ("\n") to:ThetextFile
                    
                    )
                    )

                    Comment


                    • #11
                      Originally posted by simmsimaging View Post
                      Colin Senner's Relink Bitmaps script will print a list of missing texmaps for you. I'm fairly sure it will also pickup Vrmesh files and things like that, but it will track the *missing* images for you anyway.

                      /b
                      i second this

                      ---------------------------------------------------
                      MSN addresses are not for newbies or warez users to contact the pros and bug them with
                      stupid questions the forum can answer.

                      Comment

                      Working...
                      X