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

Jun 26 2019

Sybren A. St眉vel (sybren) closed T65904: [Blender Asset Tracer] External files with the same name (and path) but which live on different drives are packed as a single file as 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 Waiting for Developer to Reproduce to Needs Triage by Developer.
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) triaged T63652: Remapping paths as Normal priority.
Apr 16 2019, 10:28 AMBlender Asset Tracer

Jan 3 2019

Sybren A. St眉vel (sybren) triaged T60131: Projects on mapped network drives fail as Normal priority.
Jan 3 2019, 7:37 PMBlender Asset Tracer

Jan 2 2019

Sybren A. St眉vel (sybren) closed T59124: BAT failes to find resources when parsing a blend file from a different platform as 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) triaged T57672: Pointcaches are not found when stored on disk and sending to flamenco (Missing file warning) as Normal priority.
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) closed T54125: BAT: Blender Asset Tracer 馃 as 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) closed T55542: BAT doesn't pack smoke cache as 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) closed T55539: BAT doesn't pack particle caches as Resolved by committing rBAST0b96635953be: Fix T55539: BAT doesn't pack particle caches.
Jul 3 2018, 3:05 PMBlender Asset Tracer

Jun 20 2018

Philipp Oeser (lichtwerk) claimed T55542: BAT doesn't pack smoke cache.

oki, will see what I can do...

Jun 20 2018, 3:45 PMBlender Asset Tracer
Sybren A. St眉vel (sybren) added a comment to T55542: BAT doesn't pack smoke cache.

My plate is already pretty full with Code Quest stuff, so I appreciate your help. P732 seems like a good first step. Once you're a bit further, in a diffusion patch and I can give you some more feedback. For now I've commented on P732.

Jun 20 2018, 3:35 PMBlender Asset Tracer
Sybren A. St眉vel (sybren) added a comment to T55539: BAT doesn't pack particle caches.

BAT doesnt respect caches with blank names (blender itself will add hex representation of object name in that case, see here)

Jun 20 2018, 3:23 PMBlender Asset Tracer
Philipp Oeser (lichtwerk) assigned T55542: BAT doesn't pack smoke cache to Sybren A. St眉vel (sybren).

Yep, smoke is not implemented (yet), rBASTdfa07e19cc35 just did it for fluids...

Jun 20 2018, 3:11 PMBlender Asset Tracer
Philipp Oeser (lichtwerk) assigned T55539: BAT doesn't pack particle caches to Sybren A. St眉vel (sybren).

Can confirm this.

Jun 20 2018, 1:51 PMBlender Asset Tracer

Jun 19 2018

Isaac Weaver (wisaac) created T55542: BAT doesn't pack smoke cache.
Jun 19 2018, 7:33 PMBlender Asset Tracer
Isaac Weaver (wisaac) created T55539: BAT doesn't pack particle caches.
Jun 19 2018, 6:28 PMBlender Asset Tracer

Jun 5 2018

Sybren A. St眉vel (sybren) closed T55007: Issues with cache files and file sequences as Resolved by committing rBASTdfa07e19cc35: Fix T55007: Support fluid simulation cache files.
Jun 5 2018, 3:13 PMBlender Asset Tracer
Isaac Weaver (wisaac) added a comment to T55007: Issues with cache files and file sequences.

@Sybren A. St眉vel (sybren) I updated the description to include a .zip file with some backed caches.

Jun 5 2018, 6:10 AMBlender Asset Tracer
Isaac Weaver (wisaac) updated the task description for T55007: Issues with cache files and file sequences.
Jun 5 2018, 6:07 AMBlender Asset Tracer

May 29 2018

Sybren A. St眉vel (sybren) added a comment to T55007: Issues with cache files and file sequences.

@Isaac Weaver (wisaac) can you update your bug report with one or more example files that demonstrate this issue? Just having to unzip a file and opening/bat-packing a blend file makes it much faster for me to fix, and also ensures that I'm looking at the same issue as you are.

May 29 2018, 12:29 PMBlender Asset Tracer