Page MenuHome

Blender Asset TracerProject
ActivePublic

Details

Description

Blender Asset Tracer, a.k.a. BAT🦇, is the replacement of BAM and blender-file.

BAT🦇 can be used to list all dependencies of a blend file, such as linked blend files, textures, Alembic files, and caches. Furthermore, it can
be used to create a BAT Pack, which contains the blend file and its dependencies.


Git repository: https://developer.blender.org/source/blender-asset-tracer/

Pypi: https://pypi.org/project/blender-asset-tracer/

The initial design choices are described in T54125.

Recent Activity

Sun, Jun 14

David Gulla (davidgulla) added a watcher for Blender Asset Tracer: David Gulla (davidgulla).
Sun, Jun 14, 10:35 PM

Sun, Jun 7

可憐狐 (Byakko) added a watcher for Blender Asset Tracer: 可憐狐 (Byakko).
Sun, Jun 7, 10:59 AM

Apr 29 2020

Kalcifer Kandari (KalciferKandari) added a watcher for Blender Asset Tracer: Kalcifer Kandari (KalciferKandari).
Apr 29 2020, 4:27 PM

Mar 18 2020

Jeroen Bakker (jbakker) created T74871: BAT Looks for Packed Linked Blend files on the file system..
Mar 18 2020, 10:01 AM · Blender Asset Tracer

Mar 17 2020

Sybren A. Stüvel (sybren) closed T60131: Projects on mapped network drives fail as Resolved.
Mar 17 2020, 5:19 PM · Blender Asset Tracer
Sybren A. Stüvel (sybren) added a comment to T60131: Projects on mapped network drives fail.

This should be fixed in rBASTe4bf2e8e35a8: Improved path handling.

Mar 17 2020, 5:19 PM · Blender Asset Tracer
Sybren A. Stüvel (sybren) closed T70655: BAT adds drive letter in destination field when running in Windows as Resolved by committing rBASTe4bf2e8e35a8: Improved path handling.
Mar 17 2020, 5:18 PM · Blender Asset Tracer

Mar 12 2020

Sybren A. Stüvel (sybren) added a comment to T60131: Projects on mapped network drives fail.

This is related to D6676.

Mar 12 2020, 11:12 AM · Blender Asset Tracer

Jan 22 2020

Jacob Merrill (blueprintrandom) added a watcher for Blender Asset Tracer: Jacob Merrill (blueprintrandom).
Jan 22 2020, 11:00 PM

Jan 21 2020

Peter Baintner (predoe) added a watcher for Blender Asset Tracer: Peter Baintner (predoe).
Jan 21 2020, 11:22 AM

Jan 7 2020

Stefan Werner (swerner) added a watcher for Blender Asset Tracer: Stefan Werner (swerner).
Jan 7 2020, 10:38 PM

Dec 22 2019

Kilon Alios (kilon) added a watcher for Blender Asset Tracer: Kilon Alios (kilon).
Dec 22 2019, 10:35 PM

Dec 4 2019

Alex (einsteinchen) added a watcher for Blender Asset Tracer: Alex (einsteinchen).
Dec 4 2019, 1:32 PM

Nov 11 2019

Taiwo Folu (Taiwofolu) added a watcher for Blender Asset Tracer: Taiwo Folu (Taiwofolu).
Nov 11 2019, 6:29 AM

Oct 9 2019

Jeroen Bakker (jbakker) updated the task description for T70655: BAT adds drive letter in destination field when running in Windows.
Oct 9 2019, 11:14 PM · Blender Asset Tracer
Jeroen Bakker (jbakker) created T70655: BAT adds drive letter in destination field when running in Windows.
Oct 9 2019, 12:19 AM · Blender Asset Tracer

Oct 7 2019

B.E. (jiku) added a watcher for Blender Asset Tracer: B.E. (jiku).
Oct 7 2019, 1:53 PM

Sep 26 2019

Sybren A. Stüvel (sybren) changed the status of T69976: Blender asset tracer (v1.1.1) does not work with FluidSimModifier in Blender 2.81 from Unknown Status to Resolved by committing rBAST5988f3599a1b: Fix T69976: BAT does not work with FluidSimModifier in Blender 2.81.
Sep 26 2019, 12:39 PM · Blender Asset Tracer, Add-ons (Community)

Sep 18 2019

Philipp Oeser (lichtwerk) edited projects for T69976: Blender asset tracer (v1.1.1) does not work with FluidSimModifier in Blender 2.81, added: Blender Asset Tracer; removed Flamenco.
Sep 18 2019, 1:47 PM · Blender Asset Tracer, Add-ons (Community)

Jun 26 2019

Sybren A. Stüvel (sybren) changed the status of T65904: [Blender Asset Tracer] External files with the same name (and path) but which live on different drives are packed as a single file from Unknown Status to Resolved by committing rBAST113b0c9bb860: Fix T65904: External files with same path on different drives are packed once.
Jun 26 2019, 2:57 PM · Platform: Windows, Blender Asset Tracer
Sybren A. Stüvel (sybren) added a comment to T65904: [Blender Asset Tracer] External files with the same name (and path) but which live on different drives are packed as a single file.

Nice find, thanks for posting a solution in code.

Jun 26 2019, 2:37 PM · Platform: Windows, Blender Asset Tracer

Jun 24 2019

Oliver Dawes (haiku) added a comment to T65933: [Blender Asset Tracer] Files are not closed on Windows after using BAT to trace .blend file in Add-on.

Thank you, that makes a lot of sense.

Jun 24 2019, 5:42 PM · Platform: Windows, Blender Asset Tracer
Sybren A. Stüvel (sybren) added a comment to T65933: [Blender Asset Tracer] Files are not closed on Windows after using BAT to trace .blend file in Add-on.

Calling libfile.close() like that is not a good idea. Opening a blend file is the most expensive part of the tracing process, which is why it's cached in the first place by calling blendfile.open_cached(). Also in this example it's not called when an exception occurs, which means it can still keep files open.

Jun 24 2019, 3:54 PM · Platform: Windows, Blender Asset Tracer
Oliver Dawes (haiku) added a comment to T65904: [Blender Asset Tracer] External files with the same name (and path) but which live on different drives are packed as a single file.

A potential change which fixes this issue for me is to change the _find_new_paths() method in pack/__init__.py from:

Jun 24 2019, 2:06 PM · Platform: Windows, Blender Asset Tracer
Oliver Dawes (haiku) added a comment to T65933: [Blender Asset Tracer] Files are not closed on Windows after using BAT to trace .blend file in Add-on.

I have been able to solve this issue by adding the following code:

Jun 24 2019, 12:24 PM · Platform: Windows, Blender Asset Tracer

Jun 19 2019

Oliver Dawes (haiku) added a comment to T65933: [Blender Asset Tracer] Files are not closed on Windows after using BAT to trace .blend file in Add-on.

Process explorer show that once the 'trace' method is called Blender keeps open file handles for all .blend files found by BAT during the trace (This includes linked .blend files).

Jun 19 2019, 6:28 PM · Platform: Windows, Blender Asset Tracer
Oliver Dawes (haiku) renamed T65933: [Blender Asset Tracer] Files are not closed on Windows after using BAT to trace .blend file in Add-on from [Blender Asset Tracer] to [Blender Asset Tracer] Files are not closed on Windows after using BAT to trace .blend file in Add-on.
Jun 19 2019, 6:23 PM · Platform: Windows, Blender Asset Tracer
Oliver Dawes (haiku) created T65933: [Blender Asset Tracer] Files are not closed on Windows after using BAT to trace .blend file in Add-on.
Jun 19 2019, 6:22 PM · Platform: Windows, Blender Asset Tracer

Jun 18 2019

Brecht Van Lommel (brecht) assigned T65904: [Blender Asset Tracer] External files with the same name (and path) but which live on different drives are packed as a single file to Sybren A. Stüvel (sybren).
Jun 18 2019, 2:41 PM · Platform: Windows, Blender Asset Tracer
Brecht Van Lommel (brecht) raised the priority of T65904: [Blender Asset Tracer] External files with the same name (and path) but which live on different drives are packed as a single file from 80 to 90.
Jun 18 2019, 2:41 PM · Platform: Windows, Blender Asset Tracer
Oliver Dawes (haiku) created T65904: [Blender Asset Tracer] External files with the same name (and path) but which live on different drives are packed as a single file.
Jun 18 2019, 2:27 PM · Platform: Windows, Blender Asset Tracer

Jun 17 2019

Oliver Dawes (haiku) added a watcher for Blender Asset Tracer: Oliver Dawes (haiku).
Jun 17 2019, 1:33 PM

Apr 26 2019

Tom Voll (tjvoll) added a watcher for Blender Asset Tracer: Tom Voll (tjvoll).
Apr 26 2019, 9:36 PM

Apr 16 2019

Duarte Farrajota Ramos (duarteframos) added a watcher for Blender Asset Tracer: Duarte Farrajota Ramos (duarteframos).
Apr 16 2019, 12:18 PM
Sybren A. Stüvel (sybren) edited Description on Blender Asset Tracer.
Apr 16 2019, 10:45 AM
Sybren A. Stüvel (sybren) edited Description on Blender Asset Tracer.
Apr 16 2019, 10:44 AM
Sybren A. Stüvel (sybren) lowered the priority of T63652: Remapping paths from 90 to Normal.
Apr 16 2019, 10:28 AM · Blender Asset Tracer

Jan 3 2019

Sybren A. Stüvel (sybren) lowered the priority of T60131: Projects on mapped network drives fail from 90 to Normal.
Jan 3 2019, 7:37 PM · Blender Asset Tracer

Jan 2 2019

Sybren A. Stüvel (sybren) changed the status of T59124: BAT failes to find resources when parsing a blend file from a different platform from Unknown Status to Resolved.

In current master (released as 0.8) all unit tests work on Windows as well. The windows-support branch has been deleted.

Jan 2 2019, 4:39 PM · Blender Asset Tracer

Dec 20 2018

Sybren A. Stüvel (sybren) added a comment to T59124: BAT failes to find resources when parsing a blend file from a different platform.

I've made a new branch windows-support to track Windows-specific fixes. They should only be merged to the master branch when they have been tested on (and proven compatible with) Linux.

Dec 20 2018, 3:25 PM · Blender Asset Tracer

Dec 11 2018

Sybren A. Stüvel (sybren) added a comment to T59124: BAT failes to find resources when parsing a blend file from a different platform.

My proposal is to adapt the BlendPath.to_path method to convert the Windows slashes automatically to posix slashes.

Dec 11 2018, 5:52 PM · Blender Asset Tracer

Dec 10 2018

Jeroen Bakker (jbakker) updated subscribers of T59124: BAT failes to find resources when parsing a blend file from a different platform.
Dec 10 2018, 3:25 PM · Blender Asset Tracer
Jeroen Bakker (jbakker) created T59124: BAT failes to find resources when parsing a blend file from a different platform.
Dec 10 2018, 3:24 PM · Blender Asset Tracer

Dec 4 2018

Jasper van Nieuwenhuizen (jasperge) added a watcher for Blender Asset Tracer: Jasper van Nieuwenhuizen (jasperge).
Dec 4 2018, 10:24 AM

Nov 7 2018

Philipp Oeser (lichtwerk) lowered the priority of T57672: Pointcaches are not found when stored on disk and sending to flamenco (Missing file warning) from 90 to Normal.
Nov 7 2018, 2:13 PM · Blender Asset Tracer, Flamenco
Sybren A. Stüvel (sybren) added a comment to T57672: Pointcaches are not found when stored on disk and sending to flamenco (Missing file warning).

Nice analysis, thanks.

Nov 7 2018, 1:08 PM · Blender Asset Tracer, Flamenco
Sybren A. Stüvel (sybren) added a member for Blender Asset Tracer: Jeroen Bakker (jbakker).
Nov 7 2018, 1:04 PM
Jeroen Bakker (jbakker) updated the task description for T57672: Pointcaches are not found when stored on disk and sending to flamenco (Missing file warning).
Nov 7 2018, 10:57 AM · Blender Asset Tracer, Flamenco
Jeroen Bakker (jbakker) updated subscribers of T57672: Pointcaches are not found when stored on disk and sending to flamenco (Missing file warning).
Nov 7 2018, 10:55 AM · Blender Asset Tracer, Flamenco
Jeroen Bakker (jbakker) created T57672: Pointcaches are not found when stored on disk and sending to flamenco (Missing file warning).
Nov 7 2018, 10:45 AM · Blender Asset Tracer, Flamenco