From 337bad48e48e1f53d565e05047cc64a8bbdc966f Mon Sep 17 00:00:00 2001 From: Quarto GHA Workflow Runner Date: Thu, 12 Dec 2024 04:22:06 +0000 Subject: [PATCH] Built site for gh-pages --- .nojekyll | 2 +- api/BlenderObject.html | 6 +++--- api/attribute.named_attribute.html | 2 +- api/attribute.store_named_attribute.html | 18 +++++++++--------- search.json | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.nojekyll b/.nojekyll index 1de568c..84041fd 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -440e31ad \ No newline at end of file +d4f29a36 \ No newline at end of file diff --git a/api/BlenderObject.html b/api/BlenderObject.html index e0f44c6..982f45d 100644 --- a/api/BlenderObject.html +++ b/api/BlenderObject.html @@ -167,7 +167,7 @@

BlenderObject

A convenience class for working with Blender objects

Examples

-
+
import bpy
 import numpy as np
 from databpy import BlenderObject
@@ -176,7 +176,7 @@ 

print(obj.object)

Cube
-<bpy_struct, Object("Cube") at 0x55c8efc92c70>
+<bpy_struct, Object("Cube") at 0x5645c5036710>
@@ -461,7 +461,7 @@

Examples

-
+
import bpy
 from databpy import BlenderObject
 
diff --git a/api/attribute.named_attribute.html b/api/attribute.named_attribute.html
index f16472d..99035fa 100644
--- a/api/attribute.named_attribute.html
+++ b/api/attribute.named_attribute.html
@@ -231,7 +231,7 @@ 

Re

Examples

All data inside of Blender is stored as arbitrary attributes on a mesh, on a certain domain. We will mostly only interact with the ‘POINT’ domain, which is the vertices of the mesh.

-
+
import bpy
 from databpy import named_attribute
 obj = bpy.data.objects['Cube']
diff --git a/api/attribute.store_named_attribute.html b/api/attribute.store_named_attribute.html
index 2dae055..14055d4 100644
--- a/api/attribute.store_named_attribute.html
+++ b/api/attribute.store_named_attribute.html
@@ -250,7 +250,7 @@ 

Re

Examples

-
+
import bpy
 import numpy as np
 from databpy import store_named_attribute, named_attribute
@@ -274,14 +274,14 @@ 

[-1. -1. -1.]]

-
array([[0.21082492, 0.54299754, 0.79871339],
-       [0.45146361, 0.32436171, 0.06065848],
-       [0.93094283, 0.43233842, 0.63407391],
-       [0.59696811, 0.15472716, 0.46959913],
-       [0.62050295, 0.44590631, 0.36404702],
-       [0.46386492, 0.47794437, 0.55010402],
-       [0.38005042, 0.98165387, 0.75368565],
-       [0.46768257, 0.63570756, 0.4090479 ]])
+
array([[0.42085516, 0.8247115 , 0.18078914],
+       [0.82180929, 0.54643446, 0.89033854],
+       [0.21997517, 0.62775457, 0.92058384],
+       [0.84823769, 0.14972661, 0.90581191],
+       [0.58282477, 0.10617012, 0.27824417],
+       [0.18961975, 0.27291611, 0.23664372],
+       [0.93720025, 0.43266991, 0.09832647],
+       [0.10094472, 0.34306538, 0.81888658]])
diff --git a/search.json b/search.json index 5f33998..623fd02 100644 --- a/search.json +++ b/search.json @@ -32,7 +32,7 @@ "href": "api/BlenderObject.html#examples", "title": "BlenderObject", "section": "Examples", - "text": "Examples\n\nimport bpy\nimport numpy as np\nfrom databpy import BlenderObject\nobj = BlenderObject(bpy.data.objects['Cube'])\nprint(obj.name)\nprint(obj.object)\n\nCube\n<bpy_struct, Object(\"Cube\") at 0x55c8efc92c70>" + "text": "Examples\n\nimport bpy\nimport numpy as np\nfrom databpy import BlenderObject\nobj = BlenderObject(bpy.data.objects['Cube'])\nprint(obj.name)\nprint(obj.object)\n\nCube\n<bpy_struct, Object(\"Cube\") at 0x5645c5036710>" }, { "objectID": "api/BlenderObject.html#attributes", @@ -74,7 +74,7 @@ "href": "api/attribute.store_named_attribute.html#examples", "title": "attribute.store_named_attribute", "section": "Examples", - "text": "Examples\n\nimport bpy\nimport numpy as np\nfrom databpy import store_named_attribute, named_attribute\n\nobj = bpy.data.objects['Cube']\ndata = np.random.rand(len(obj.data.vertices), 3)\n\nprint(named_attribute(obj, 'position')) # get the vertex positions as as numpy array\n\nstore_named_attribute(obj, data, 'position') # set the vertex positions with random data\n\nnamed_attribute(obj, 'position') # get the updated vertex positions\n\n[[ 1. 1. 1.]\n [ 1. 1. -1.]\n [ 1. -1. 1.]\n [ 1. -1. -1.]\n [-1. 1. 1.]\n [-1. 1. -1.]\n [-1. -1. 1.]\n [-1. -1. -1.]]\n\n\narray([[0.21082492, 0.54299754, 0.79871339],\n [0.45146361, 0.32436171, 0.06065848],\n [0.93094283, 0.43233842, 0.63407391],\n [0.59696811, 0.15472716, 0.46959913],\n [0.62050295, 0.44590631, 0.36404702],\n [0.46386492, 0.47794437, 0.55010402],\n [0.38005042, 0.98165387, 0.75368565],\n [0.46768257, 0.63570756, 0.4090479 ]])" + "text": "Examples\n\nimport bpy\nimport numpy as np\nfrom databpy import store_named_attribute, named_attribute\n\nobj = bpy.data.objects['Cube']\ndata = np.random.rand(len(obj.data.vertices), 3)\n\nprint(named_attribute(obj, 'position')) # get the vertex positions as as numpy array\n\nstore_named_attribute(obj, data, 'position') # set the vertex positions with random data\n\nnamed_attribute(obj, 'position') # get the updated vertex positions\n\n[[ 1. 1. 1.]\n [ 1. 1. -1.]\n [ 1. -1. 1.]\n [ 1. -1. -1.]\n [-1. 1. 1.]\n [-1. 1. -1.]\n [-1. -1. 1.]\n [-1. -1. -1.]]\n\n\narray([[0.42085516, 0.8247115 , 0.18078914],\n [0.82180929, 0.54643446, 0.89033854],\n [0.21997517, 0.62775457, 0.92058384],\n [0.84823769, 0.14972661, 0.90581191],\n [0.58282477, 0.10617012, 0.27824417],\n [0.18961975, 0.27291611, 0.23664372],\n [0.93720025, 0.43266991, 0.09832647],\n [0.10094472, 0.34306538, 0.81888658]])" }, { "objectID": "api/attribute.named_attribute.html",