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

Wed, Jan 22

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

Tue, Jan 21

Peter Baintner (predoe) added a watcher for Blender Asset Tracer: Peter Baintner (predoe).
Tue, Jan 21, 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 PMBlender Asset Tracer
Jeroen Bakker (jbakker) created T70655: BAT adds drive letter in destination field when running in Windows.
Oct 9 2019, 12:19 AMBlender 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 PMBlender Asset Tracer, Add-ons

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 PMBlender Asset Tracer, Add-ons

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 PMPlatform: 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 PMPlatform: 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 PMPlatform: 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 PMPlatform: 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 PMPlatform: 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 PMPlatform: 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 PMPlatform: 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 PMPlatform: 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 PMPlatform: 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 PMPlatform: 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 PMPlatform: 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 PMPlatform: 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 AMBlender 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 PMBlender 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 PMBlender 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 PMBlender 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 PMBlender 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 PMBlender 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 PMBlender 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 PMBlender 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 PMBlender 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 AMBlender 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 AMBlender 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 AMBlender Asset Tracer, Flamenco

Oct 24 2018

Sybren A. St眉vel (sybren) changed the status of T54125: BAT: Blender Asset Tracer ? from Unknown Status to Resolved.

@John Roper (johnroper100) yes it can. If running bat --help doesn't help enough, please open a new ticket with more questions ;-)

Oct 24 2018, 11:06 AMBlender Asset Tracer

Aug 26 2018

Aditia A. Pratama (aditiapratama) added a watcher for Blender Asset Tracer: Aditia A. Pratama (aditiapratama).
Aug 26 2018, 3:43 AM

Jul 25 2018

Arto Kitula (akitula) added a watcher for Blender Asset Tracer: Arto Kitula (akitula).
Jul 25 2018, 10:20 PM

Jul 12 2018

John Roper (johnroper100) added a comment to T54125: BAT: Blender Asset Tracer ?.

Can this be used to check for missing assets in blend files? I'm looking for a way to check a blend file and look for missing assets (images, etc.) that should have been packed into the blend.

Jul 12 2018, 11:08 PMBlender Asset Tracer

Jul 6 2018

Philipp Oeser (lichtwerk) changed the status of T55542: BAT doesn't pack smoke cache from Unknown Status to Resolved by committing rBAST4e1c2d1bbb72: Fix T55542: BAT doesn't pack smoke cache.
Jul 6 2018, 11:51 AMBlender Asset Tracer
Sybren A. St眉vel (sybren) added a member for Blender Asset Tracer: Philipp Oeser (lichtwerk).
Jul 6 2018, 11:18 AM

Jul 4 2018

Philipp Oeser (lichtwerk) added a comment to T55542: BAT doesn't pack smoke cache.

fix in D3518

Jul 4 2018, 1:26 PMBlender Asset Tracer

Jul 3 2018

Sybren A. St眉vel (sybren) changed the status of T55539: BAT doesn't pack particle caches from Unknown Status to Resolved by committing rBAST0b96635953be: Fix T55539: BAT doesn't pack particle caches.
Jul 3 2018, 3:05 PMBlender Asset Tracer