Extensions
  • Home
  • Add-ons
  • Themes
  • Approval Queue
  • About
  • Upload Extension
  • Sign in
  • BLENDER.ORG

    • Download

      Get the latest Blender, older versions, or experimental builds.

    • What's New

      Stay up-to-date with the new features in the latest Blender releases.

    LEARNING & RESOURCES

    • Blender Studio

      Access production assets and knowledge from the open movies.

    • Manual

      Documentation on the usage and features in Blender.

    DEVELOPMENT

    • Developers Blog

      Latest development updates, by Blender developers.

    • Documentation

      Guidelines, release notes and development docs.

    • Benchmark

      A platform to collect and share results of the Blender Benchmark.

    • Blender Conference

      The yearly event that brings the community together.

    DONATE

    • Development Fund

      Support core development with a monthly contribution.

    • One-time Donations

      Perform a single donation with more payment options available.

All Add-ons

Add-on Pattern Collections
Pattern Collections

Sort collections by anything.
Add-on by Martin-Lorentzon
About What's New Permissions Reviews Version History
Pattern-Based Collections for Blender

Pattern-Based Collections for Blender

Categorising selections of objects within scenes is crucial for various digital content workflows. Blender gives us access to the Collection type through its Python API but lacks in tools (code and non-code) for grouping objects by common properties and metadata. This extension draws inspiration from Pattern-Based Collections for OpenUSD and is built on top of existing standards like RegEx and the JSON format to enable configuration and layering of precise sorting rules for collections in Blender.

Some use cases

  • Keep your blend-files tidy as an artist
  • Divide thousands of objects into bake/export collections
  • Configure model/scene variations from metadata

Important Aspects

Artist-friendly Configuration

Configure, test and reiterate on your collection patterns from the Blender interface

rules_setup

JSON Export

Export and reuse your collection patterns for future projects

Python API

# These commands assume you have an active collection
bpy.ops.scene.pattern_collection_import(filepath="")
bpy.ops.scene.pattern_collection_sort()  # Sorts the collection

Available Sorting Categories

  • Included/Excluded Names
  • Included/Excluded Hierarchies
  • Included/Excluded Types
  • Included/Excluded Materials
  • Included/Excluded Collections
  • Included/Excluded UV Layers
  • Included/Excluded Modifiers
  • Included/Excluded Attributes

Optimisation

The extension has the potential of sorting 1K objects in less than one second. I'm continuously searching for more optimisations; however most of the time sorting is spent on unlinking/linking of objects and cannot be parallelised.

Additional Details

  • Enable/Disable - Toggle its impact on sorting without completely removing it
  • Case Sensitivity - Determines if the item is processed as case-sensitive
  • Anchor - An item's relationship to the candidates
    • (Match, Contains, Starts with, Ends with, Match Rgx, Search Rgx, Greater, Less)
  • Reserved Attribute Names
    • triangles (alt. tris) - The object's number of triangles (0 for non-meshes)
    • bounding_box (alt. bbox) - The object's bounding box volume (0 for non-meshes)
    • surface_area (alt. area) - The object's surface area (0 for non-meshes)
      • (These can be mixed, e.g., use tris/area to sort by triangle density)

Automatic Sorting

Define your working structure once and let objects be categorised as you create

automatic_sorting


What's New

1.1.0 February 24th, 2025
  • Added new sorting category: Modifiers

See all versions


Permissions

This extension requests the following permission:

  • Files

    Import/export FBX from/to disk to provide JSON File I/O

Developer
Martin-Lorentzon
Rating
(1)
Version
1.1.0
Updated
2 mo
Published
Feb. 8th, 2025
Downloads
7194
Size
31.5 KB
Compatibility
Blender 4.2  and newer
Website
github.com/martin-lorentzon/PatternCollections
Report Issues
github.com/martin-lorentzon/pattern-collections/issues
License
GNU General Public License v3.0 or later
Pipeline Scene
...or download and Install from Disk
  • 31.5 KB

Reviews

See all
  • Bulat
  • v1.0.5
  • 2 mo

A very useful addon that greatly simplifies the work. Do you plan to add "Included Modifiers" in the future? Thank you.

  • Martin-Lorentzon replied
  • 2 mo

This was definitely planned at some point but must have gotten lost in my thoughts! I will update the add-on this or the following week to add modifier sorting categories as I see this potentially being very beneficial to some workflows! 👍

5.0

1 review
5
4
3
2
1
Rate this Add-on
  • About
  • Privacy Policy
  • Terms of Service
Download
  • Latest Blender
  • Blender LTS
  • Blender Benchmark
  • Previous Versions
  • Experimental Builds
  • Source Code
  • Release Notes
  • Requirements
Organization
  • People
  • Jobs
About
  • Blender Foundation
  • Blender Institute
  • Blender Studio
  • License
  • Logo & Trademark
  • Credits
  • Privacy Policy
Articles
  • News
  • Press Releases
  • User Stories
Get Involved
  • Dashboard
  • Development
  • Documentation
  • Education
Blender Studio
  • Films
  • Training
Support
  • Manual
  • Community
  • FAQ
Developers
  • Get Started
  • Projects
  • Docs
  • Blog
  • Forum
  • YouTube
  • Python API
Blender Conference
Follow Blender
Support Blender
  • Donate
  • One-time Donation
Artistic freedom starts with Blender The Free and Open Source 3D Creation Suite