4
$\begingroup$

I need to change the FilePath of an already imported Alembic File Cache.

In the UI it is done from the Datablocks>Cache Files>File Path, but I need do it with PY + File Blend + New Path)

  1. Search all cache files
  2. List
  3. Change filepath
  4. Save

Any idea???

$\endgroup$
2
$\begingroup$

You can find this in the Python tooltip:

screenshot

In this example I would change bpy.data.cache_files['3DSMAX_character_armature.abc'].filepath to point to the new Alembic file location.

Iterating over all Alembic caches can be done with for cfile in bpy.data.cache_files.values(): …

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.