Page MenuHome

Pointcaches are not found when stored on disk and sending to flamenco (Missing file warning)
Open, NormalPublic

Description

disk caches are stored in blendcache_<blendfilename_no_ext> folder.

when sending a file to flamenco the filename is changed from orig.blend to orig.flamenco.blend
See https://git.blender.org/gitweb/gitweb.cgi/blender-cloud-addon.git/blob/HEAD:/blender_cloud/flamenco/__init__.py#l314
But caches still remain in original location: //blendcache_orig/

When using a disk cache (PTCACHE_DISK_CACHE) the point cache location is reconstructed using the new filename resulting in the wrong location
In https://git.blender.org/gitweb/gitweb.cgi/blender-asset-tracer.git/blob/HEAD:/blender_asset_tracer/trace/modifier_walkers.py#l149

BAT wants to load the caches from //blendcache_orig.flamenco/ which is incorrect. As this folder does not exist the file sequence expander yields an empty list
https://git.blender.org/gitweb/gitweb.cgi/blender-asset-tracer.git/blob/HEAD:/blender_asset_tracer/trace/file_sequence.py#l45

Best way to solve it is not to use .flamenco.blend, but .flame or something similar. As PathLib.stem only removes the last extension. Btw blender strips the last 6 characters so use an extension of exactly 5 chars :-)
Or rename the extension back to .blend on the server
Something to think about

Details

Type
Bug

Event Timeline

Nice analysis, thanks.

Best way to solve it is not to use .flamenco.blend, but .flame or something similar. As PathLib.stem only removes the last extension. Btw blender strips the last 6 characters so use an extension of exactly 5 chars :-)
Or rename the extension back to .blend on the server

Adding an option to BAT🦇 to rename the blend file while creating the BAT Pack shouldn't be too hard. That way we can keep the .blend suffix for blend files. The approach would then be:

  • Blender Cloud Add-on (BCA) still saves locally as orig.flamenco.blend
  • BAT🦇 is told to copy orig.flamenco.blend to {job-storage-dir}/orig.blend
  • BCA uses orig.blend as filename in the Flamenco job JSON sent to the Flamenco Server.

@Jeroen Bakker (jbakker) what are your thoughts on this approach?

Philipp Oeser (lichtwerk) triaged this task as Normal priority.Nov 7 2018, 2:13 PM