Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Dec 12, 2024
1 parent 5a45c0a commit 76ebdbc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b8528fee
440e31ad
6 changes: 3 additions & 3 deletions api/BlenderObject.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ <h1 class="title">BlenderObject</h1>
<p>A convenience class for working with Blender objects</p>
<section id="examples" class="level2 doc-section doc-section-examples">
<h2 class="doc-section doc-section-examples anchored" data-anchor-id="examples">Examples</h2>
<div id="18996bd2" class="cell" data-execution_count="1">
<div id="cfd5cdab" class="cell" data-execution_count="1">
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> bpy</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> numpy <span class="im">as</span> np</span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> databpy <span class="im">import</span> BlenderObject</span>
Expand All @@ -176,7 +176,7 @@ <h2 class="doc-section doc-section-examples anchored" data-anchor-id="examples">
<span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(obj.<span class="bu">object</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Cube
&lt;bpy_struct, Object("Cube") at 0x55d9b63afc60&gt;</code></pre>
&lt;bpy_struct, Object("Cube") at 0x55c8efc92c70&gt;</code></pre>
</div>
</div>
</section>
Expand Down Expand Up @@ -461,7 +461,7 @@ <h4 class="doc-section doc-section-parameters anchored" data-anchor-id="paramete
</section>
<section id="examples-1" class="level4 doc-section doc-section-examples">
<h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-1">Examples</h4>
<div id="7a29b6bd" class="cell" data-execution_count="2">
<div id="fe6ce193" class="cell" data-execution_count="2">
<div class="sourceCode cell-code" id="cb8"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> bpy</span>
<span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> databpy <span class="im">import</span> BlenderObject</span>
<span id="cb8-3"><a href="#cb8-3" aria-hidden="true" tabindex="-1"></a></span>
Expand Down
2 changes: 1 addition & 1 deletion api/attribute.named_attribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ <h2 class="doc-section doc-section-returns anchored" data-anchor-id="returns">Re
<section id="examples" class="level2 doc-section doc-section-examples">
<h2 class="doc-section doc-section-examples anchored" data-anchor-id="examples">Examples</h2>
<p>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.</p>
<div id="2ce9df29" class="cell" data-execution_count="1">
<div id="9089d2d1" class="cell" data-execution_count="1">
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> bpy</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> databpy <span class="im">import</span> named_attribute</span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>obj <span class="op">=</span> bpy.data.objects[<span class="st">'Cube'</span>]</span>
Expand Down
18 changes: 9 additions & 9 deletions api/attribute.store_named_attribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h2 class="doc-section doc-section-returns anchored" data-anchor-id="returns">Re
</section>
<section id="examples" class="level2 doc-section doc-section-examples">
<h2 class="doc-section doc-section-examples anchored" data-anchor-id="examples">Examples</h2>
<div id="9990ed72" class="cell" data-execution_count="1">
<div id="909200df" class="cell" data-execution_count="1">
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> bpy</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> numpy <span class="im">as</span> np</span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> databpy <span class="im">import</span> store_named_attribute, named_attribute</span>
Expand All @@ -274,14 +274,14 @@ <h2 class="doc-section doc-section-examples anchored" data-anchor-id="examples">
[-1. -1. -1.]]</code></pre>
</div>
<div class="cell-output cell-output-display" data-execution_count="1">
<pre><code>array([[0.03449743, 0.98696953, 0.19118553],
[0.65057623, 0.26175898, 0.34670684],
[0.55709004, 0.00318601, 0.49625948],
[0.07899327, 0.31579459, 0.55580586],
[0.03649173, 0.99071121, 0.30281758],
[0.89843976, 0.92767084, 0.55005968],
[0.64777219, 0.59800774, 0.90621334],
[0.49156776, 0.80136245, 0.0188039 ]])</code></pre>
<pre><code>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 ]])</code></pre>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions search.json
Original file line number Diff line number Diff line change
Expand Up @@ -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&lt;bpy_struct, Object(\"Cube\") at 0x55d9b63afc60&gt;"
"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&lt;bpy_struct, Object(\"Cube\") at 0x55c8efc92c70&gt;"
},
{
"objectID": "api/BlenderObject.html#attributes",
Expand Down Expand Up @@ -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.03449743, 0.98696953, 0.19118553],\n [0.65057623, 0.26175898, 0.34670684],\n [0.55709004, 0.00318601, 0.49625948],\n [0.07899327, 0.31579459, 0.55580586],\n [0.03649173, 0.99071121, 0.30281758],\n [0.89843976, 0.92767084, 0.55005968],\n [0.64777219, 0.59800774, 0.90621334],\n [0.49156776, 0.80136245, 0.0188039 ]])"
"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 ]])"
},
{
"objectID": "api/attribute.named_attribute.html",
Expand Down

0 comments on commit 76ebdbc

Please sign in to comment.