Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swap out internal bpyd for databpy #695

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion molecularnodes/blender/coll.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import bpy
from bpy.types import Collection
from ..bpyd.collection import create_collection
from databpy.collection import create_collection


def mn() -> Collection:
Expand Down
2 changes: 1 addition & 1 deletion molecularnodes/blender/material.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from bpy.types import Material
from ..bpyd.material import append_from_blend
from databpy.material import append_from_blend
from ..utils import MN_DATA_FILE

MATERIAL_NAMES = [
Expand Down
4 changes: 2 additions & 2 deletions molecularnodes/blender/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import numpy as np

from . import coll, nodes
from ..bpyd.attribute import AttributeTypes
from ..bpyd.object import create_bob
from databpy.attribute import AttributeTypes
from databpy.object import create_bob


def evaluate_using_mesh(obj: bpy.types.Object) -> bpy.types.Object:
Expand Down
6 changes: 3 additions & 3 deletions molecularnodes/blender/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

from .. import color, utils
from . import mesh
from .. import bpyd
from ..bpyd.nodes import (
import databpy
from databpy.nodes import (
NodeGroupCreationError,
append_from_blend,
swap_tree,
Expand Down Expand Up @@ -560,7 +560,7 @@ def create_assembly_node_tree(
"name": "assembly_id",
"type": "NodeSocketInt",
"min": 1,
"max": max(bpyd.named_attribute(data_object, "assembly_id")),
"max": max(databpy.named_attribute(data_object, "assembly_id")),
"default": 1,
},
)
Expand Down
19 changes: 0 additions & 19 deletions molecularnodes/bpyd/__init__.py

This file was deleted.

Loading
Loading