From 409a2209dbe239b573dee6220e95b4a1b521f6d0 Mon Sep 17 00:00:00 2001 From: Quarto GHA Workflow Runner Date: Thu, 12 Dec 2024 04:01:44 +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 4b0fe16..62c2717 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -3fdd656f \ No newline at end of file +66b4b177 \ No newline at end of file diff --git a/api/BlenderObject.html b/api/BlenderObject.html index 8c2fe7d..1041aa5 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 0x557010956d10>
+<bpy_struct, Object("Cube") at 0x55ec3fc8a040>
@@ -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 166d909..898c20b 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 9e48c73..4ef15d4 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.92535317, 0.34843802, 0.99024868],
-       [0.58563697, 0.27921724, 0.01713677],
-       [0.65645969, 0.5420242 , 0.944224  ],
-       [0.91150606, 0.57671195, 0.64837003],
-       [0.92194378, 0.7192958 , 0.80681366],
-       [0.42958713, 0.78606129, 0.57923597],
-       [0.46011302, 0.51496571, 0.54166025],
-       [0.4059827 , 0.68933052, 0.20277093]])
+
array([[0.92190337, 0.11805113, 0.28902435],
+       [0.21634141, 0.26768574, 0.5761615 ],
+       [0.01354367, 0.3939566 , 0.83414084],
+       [0.04846311, 0.75055236, 0.85794073],
+       [0.44730416, 0.90213573, 0.09801433],
+       [0.00800829, 0.10463937, 0.22682489],
+       [0.78382379, 0.19809921, 0.66671908],
+       [0.17098761, 0.3448354 , 0.1509614 ]])
diff --git a/search.json b/search.json index 821ba1f..8c52971 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 0x557010956d10>" + "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 0x55ec3fc8a040>" }, { "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.92535317, 0.34843802, 0.99024868],\n [0.58563697, 0.27921724, 0.01713677],\n [0.65645969, 0.5420242 , 0.944224 ],\n [0.91150606, 0.57671195, 0.64837003],\n [0.92194378, 0.7192958 , 0.80681366],\n [0.42958713, 0.78606129, 0.57923597],\n [0.46011302, 0.51496571, 0.54166025],\n [0.4059827 , 0.68933052, 0.20277093]])" + "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.92190337, 0.11805113, 0.28902435],\n [0.21634141, 0.26768574, 0.5761615 ],\n [0.01354367, 0.3939566 , 0.83414084],\n [0.04846311, 0.75055236, 0.85794073],\n [0.44730416, 0.90213573, 0.09801433],\n [0.00800829, 0.10463937, 0.22682489],\n [0.78382379, 0.19809921, 0.66671908],\n [0.17098761, 0.3448354 , 0.1509614 ]])" }, { "objectID": "api/attribute.named_attribute.html",