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

Pyscript Playground #42

Draft
wants to merge 31 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4adbfca
readopt pydot
chrizzFTD Aug 18, 2024
172692f
update dependencies to pydot instead of pygraphviz
chrizzFTD Aug 19, 2024
add46d3
networkx requires python-3.10+, drop python-3.9
chrizzFTD Aug 19, 2024
44b7921
usd-core support for python-3.10 starts at 23.2
chrizzFTD Aug 19, 2024
63d2606
update RTD python
chrizzFTD Aug 19, 2024
984a5cd
remove pygraphviz install steps
chrizzFTD Aug 19, 2024
9506d90
grill.names intersphinx mapping lost popup for hoverxref, test settin…
chrizzFTD Aug 19, 2024
5feac89
link updated grill-names for intersphinx inventory
chrizzFTD Aug 19, 2024
f7e37b2
Revert "link updated grill-names for intersphinx inventory"
chrizzFTD Aug 19, 2024
1a8a958
restore grill.names intersphinx inventory
chrizzFTD Aug 19, 2024
c922a7a
track down change from intersphinx that broke hoverxref
chrizzFTD Aug 19, 2024
42a1678
remove pygraphviz
chrizzFTD Sep 14, 2024
ab8db52
dependencies and usd 24.11 build conda recipe
chrizzFTD Oct 26, 2024
7b11572
updating python-3.13 classifiers
chrizzFTD Oct 26, 2024
e9f6e36
update maya pip link to 2025 docs
chrizzFTD Oct 26, 2024
2ddeaa0
maya still does not bring qtcharts
chrizzFTD Oct 26, 2024
bb6ee30
Maya-2025 uses Qt6 and PySide6
chrizzFTD Oct 26, 2024
14327fd
minor spawn_many doc update
chrizzFTD Nov 3, 2024
491cef1
note that PySide6 is supported
chrizzFTD Nov 3, 2024
ee31ae0
notes on usd wasm build
chrizzFTD Sep 14, 2024
466eb50
logging graph info for pyscript tests
chrizzFTD Sep 14, 2024
d7608a8
add emscripten build notes
chrizzFTD Sep 21, 2024
52c6b73
adding playground section
chrizzFTD Sep 21, 2024
287e67c
testing out prebuilt usdjs
chrizzFTD Sep 21, 2024
949e186
attempting path fixes
chrizzFTD Sep 21, 2024
33f8352
direct paths from RTD
chrizzFTD Sep 21, 2024
f58a3b9
Revert "direct paths from RTD"
chrizzFTD Sep 21, 2024
3525e52
using iframe
chrizzFTD Sep 21, 2024
662c9f5
newline
chrizzFTD Sep 21, 2024
26c94c1
do relative link in the meantime
chrizzFTD Sep 21, 2024
e698c01
more note on pyodide
chrizzFTD Oct 25, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.12"]
python-version: ["3.10", "3.12"]
include:
- python-version: "3.9"
install-arguments: ". PySide2 usd-core==22.5 PyOpenGL pygraphviz"
- python-version: "3.10"
install-arguments: ". PySide2 usd-core==23.2 PyOpenGL"
- python-version: "3.12"
install-arguments: ".[full]"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2 # required for PY39+
build:
os: ubuntu-20.04
tools:
python: "3.9"
python: "3.10"
apt_packages:
- "graphviz"

Expand Down
21 changes: 21 additions & 0 deletions docs/source/_static/usdweb/code.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import './emHdBindings.js';

export const usd = await globalThis["NEEDLE:USD:GET"]({
mainScriptUrlOrBlob: "./emHdBindings.js",
debug: true
});
console.log('loaded usd');

//export const stage = usd.UsdStage.CreateNew("test.usda");

// https://github.com/needle-tools/usd-viewer/blob/d69afccda742d46adc96f8696a92900aaf87b001/usd-wasm/README.md?plain=1#L42
const blob = await fetch("lab_inspiration01_mini.usdz");
console.log('fetched');
const arrayBuffer = await blob.arrayBuffer();
console.log('created buffer');

usd.FS_createDataFile("", "lab_inspiration01_mini.usdz", new Uint8Array(arrayBuffer), true, true, true);
console.log('created data file');
export const stage = usd.UsdStage.Open("lab_inspiration01_mini.usdz");

console.log("loaded stage")
Loading