Skip to content

Key access for Named Attributes on a BlenderObject - #49

Merged
BradyAJohnston merged 4 commits into
mainfrom
key-access
Sep 13, 2025
Merged

Key access for Named Attributes on a BlenderObject#49
BradyAJohnston merged 4 commits into
mainfrom
key-access

Conversation

@BradyAJohnston

@BradyAJohnston BradyAJohnston commented Sep 12, 2025

Copy link
Copy Markdown
Owner

Better aligns named attribute access with numpy array access.

bob['position'] # retrieve the position

bob['position'][0] = 3 # set position for first point to (3, 3, 3)

bob['position'][0][0] = 3 # set the x value for first point to 3

bob['new_attibute'] = np.zeros(len(bob), dtype=int) # creates a new attribute, only supports the point domain

Fixes #50

@BradyAJohnston
BradyAJohnston merged commit 1e8811b into main Sep 13, 2025
31 checks passed
@BradyAJohnston
BradyAJohnston deleted the key-access branch September 13, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Column accessor fails to be indexed

1 participant