Blender: Asset Linking | Scripting for Artists

Asset Linking | Scripting for Artists
Set Building typically starts with linkning in available assets from various blend files, instancing those into the scene, and positioning them nicely so that they can be picked up and placed. This is not a fun task, so perfect to automate with some scripting! In this episode of Scripting for Artists Sybren explains how to link data from different blend files, how to instance collections in the scene, and even covers the parsing of JSON files to separate the project-specific information from your add-on.

Source code of the final asset: https://storage.googleapis.com/institute-storage/cloud/training/scripting-for-artists/video_12_asset_linking.py

The Settlers project: https://cloud.blender.org/settlers

– The Settlers project: 00:35
– Manually going through the process: 01:30
– Linking data with Python: 02:58
– First step of linking: 05:48
– Instancing collections into the scene: 08:38
– Creating a collection if it doesn’t exist yet: 10:40
– Lining up the assets: 12:33
– From snippet of code to add-on with functions: 13:22
– Reading project-specifics from a JSON file: 17:27
– Everything is working: 23:48
– Cater for future changes: 24:08

More Scripting for Artists: https://cloud.blender.org/p/scripting…

Support core Blender development – https://fund.blender.org

View on YouTube

Join the Discussion

Share your thoughts, ask a question, or tell us what you learned. Your first comment is reviewed before it appears. Once approved, future comments using the same name and email can appear directly, subject to spam checks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Fix the Blender logo

Drag the loose piece into the missing part. A close fit is enough.

Loading verification…

Keyboard: arrows to move, Shift for fine adjustment, Enter to check. Verification only; movement is not stored. Logo: Blender.