-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs-tutorials
- Loading branch information
Showing
25 changed files
with
1,771 additions
and
1,603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
*.blend1 | ||
__pycache__/* | ||
.vscode/* | ||
*.zip | ||
*.pyc | ||
.Rproj.user | ||
/.quarto/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+12.8 MB
MolecularNodes/assets/node_append_file.blend → MolecularNodes/assets/MN_data_file.blend
Binary file not shown.
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
MolecularNodes/assets/template/Molecular_Nodes/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
import bpy | ||
# from bpy.app.handlers import persistent | ||
|
||
|
||
# @persistent | ||
# def load_handler(_): | ||
# import bpy | ||
# Apply subdivision modifier on startup | ||
# bpy.ops.object.mode_set(mode='OBJECT') | ||
# if bpy.app.opensubdiv.supported: | ||
# bpy.ops.object.modifier_apply(modifier="Subdivision") | ||
# bpy.ops.object.mode_set(mode='EDIT') | ||
# bpy.ops.transform.tosphere(value=1.0) | ||
# else: | ||
# bpy.ops.object.modifier_remove(modifier="Subdivision") | ||
# bpy.ops.object.mode_set(mode='EDIT') | ||
# bpy.ops.mesh.subdivide(number_cuts=6, smoothness=1.0) | ||
# bpy.ops.object.mode_set(mode='SCULPT') | ||
|
||
|
||
def register(): | ||
# bpy.app.handlers.load_factory_startup_post.append(load_handler) | ||
|
||
|
||
def unregister(): | ||
# bpy.app.handlers.load_factory_startup_post.remove(load_handler) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import random | ||
import colorsys | ||
import numpy as np | ||
|
||
def random_rgb(): | ||
"""Random Pastel RGB values | ||
""" | ||
r, g, b = colorsys.hls_to_rgb(random.random(), 0.6, 0.6) | ||
return np.array((r, g, b, 1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.