github m3trik/pythontk v0.30.0
pythontk v0.30.0

48 minutes ago
  • 2026-12-06 -- Fixed: a USD delivery's packaged copy lost an asset array's empty entries under USD 26.11 (file_utils/usd/delivery.py UsdDelivery._place_files, new _empty_entries, _keep_empty_entries). Its UsdUtils.ModifyAssetPaths drops them with its flag to keep them set (26.05's keeps them, 23.11's binds no flag and drops them), so every entry after one moved up a place. Each empty entry is now put back where it stood, on every USD.

    • Tests: tests/test_usd_delivery.py test_an_asset_arrays_empty_entries_keep_their_places_in_the_packaged_copy holds every version to the whole array (failed first under usd-core 26.11, as on CI); tests/test_look_capture.py test_a_probe_is_read_alike_from_openexr_and_from_a_released_files_radiance skips without OpenCV, which writes the probes, as its siblings do.
  • 2026-12-06 -- Fixed: the note names only what the file holds, says a refused note's cure, and lists what the USD left out (core_utils/engines/scene_export/handoff_record.py HandoffRecord.lighting, report; scene_records.py SceneRecords.HANDOFF.since; scene_exporter.py SceneExporterBase._usd_omissions, _usd_records; file_utils/mesh_convert/_sidecar.py _finish_glb_handoff; export_verify.py check_glb_handoff). An independent review of the note's change found five gaps, each now closed:

    • A lighting row named data_export.rendering.environment in a file holding no rendering record; a row's address with no value is now left out, so the note never names a record the file lacks.
    • A note of another version was said as "not read" alone; the reader now says its cure, from the declaration (HANDOFF.since, "pythontk 0.30.0"): an older note "export the delivery again with pythontk 0.30.0 or later", a newer one "update pythontk to read it".
    • What a USD states less than the FBX was said in the export's log alone; each is now an entry of the package note's left_out too ('<record>: <why>'). The render-effect curves it counts are the materials' alone (a node's curves are animation the layer holds), and a record of another version names its version.
    • A released GLB finished again kept its records at the root while its restated note named the node; the restated file moves them to the node its note names.
    • The export verifier's GLB gate said nothing of a file holding records and no note; it now warns that they may be stale (HandoffRecord.UNNOTED), and a plain file skips the gate with a plain file: no note, no records (HandoffRecord.PLAIN).
    • A lighting row with no address in the file (a file holding no rendering record and no lightmaps) was said with no data, describing what the file does not hold; it is left out (_filled_rows), and the full statement keeps every row. GlbEdit says a released GLB keeps its records at the root until its note is stated again.
    • Docs: the WebXR preview guide shows the note at asset.extras with its records' sizes and left_out, and the rendering record apart; scene_records.py names no host; AudioUtils.MEDIA_TYPES says why it is stated rather than read from mimetypes.
    • Tests: tests/test_handoff_record.py (test_a_lighting_row_with_nothing_in_the_file_to_point_at_is_not_said, test_a_file_without_the_rendering_record_is_never_said_to_hold_it, test_a_note_of_another_version_is_said_with_its_cure_and_read_as_none), test_scene_exporter.py (the omissions in left_out, test_a_nodes_curves_alone_are_no_omission), test_mesh_convert.py (a released file finished again, its records on the node), test_export_verify.py (a GLB with records and no note warned, a plain one skipped); the rows that named the record unheld and the refusal's text are held to the new wording.
  • 2026-12-06 -- Added: the files a version series of a format holds (core_utils/engines/scene_export/export_profile.py new ExportProfile.series_extensions). The files a format ships, its primary first, then the forms its delivery had before (a USD series' package, then its bare layers); None gives every format's. The version counter reads it, and so does tentacle's Scene Exporter file picker, which kept its own list.

    • Tests: tests/test_export_profile.py test_a_series_holds_what_its_format_ships_then_what_it_shipped_before failed first.
  • 2026-12-06 -- Changed: the note sits at the head of every format, the lighting is a record of its own, and a reader says what it finds (core_utils/engines/scene_export/handoff_record.py HandoffRecord.VERSION 4, block, new RenderingRecord, rendering_record, sizes, glb_note, put_glb_note, glb_rendering, RELEASED_LIGHTING, report, sought, say, MISSING, UNNOTED, PLAIN; scene_records.py new SceneRecords.RENDERING, glb_held(keys=); export_snapshot.py; file_utils/mesh_convert/fbx_media.py new FbxMedia.note, set_note, report; _sidecar.py finish_glb, verify_glb; export_verify.py new check_fbx_note; export_fingerprint.py ExportFingerprint.of_glb, of_fbx; file_utils/usd/delivery.py UsdDelivery.package, new UsdDelivery.note, report, UNNAMED; net_utils/preview/kernel/scene.js new renderingOf; kernel/records.js RELEASED_LIGHTING). The note (the handoff record) describes a file and changes nothing: what it is, how to read it, the approved scene part by part, each record it holds by name and size, and what was left out and why (left_out: a record the exporter's settings excluded or withheld, one a conversion does not carry, a value no USD property can name). It sits where a reader meets it first and every importer reads past it: the FBX header's SceneInfo property handoff, the GLB's asset.extras.handoff, the USD root layer's customLayerData.handoff; the export's commit writes it on the scene's carrier, and each format's last pass states it again at the head from what the file then holds, so no carrier keeps a copy. The lighting the scene was approved under is the rendering record (version 1), on the carrier with the others, each section only where the file's content uses it: the viewer, the scene description and Unity read it, the export's choices read back by HandoffRecord.overrides. A reader compares the note with the records by name and says one of four things (HandoffRecord.report): nothing; each record the note names and the file lacks; records with no note, possibly stale; a plain file. verify_glb and the export verifier's new check_fbx_note say them, and both hosts' FBX and USD imports (FbxMedia.report, UsdDelivery.report; said on a log by HandoffRecord.say: a plain file at DEBUG, anything else a warning).

    • A reader holds by name each record the note names, a record it does not declare included (HandoffRecord.sought, SceneRecords.glb_held(keys=)): a file a newer writer made is never said to lack one. HandoffRecord.say takes the reader (say(lambda: FbxMedia.report(path), log, label)) and never stops the import that asked: a file no reader of ours parses is said nothing of, any other failure as its note not read. Finishing a GLB lights it as it was approved (HandoffRecord.glb_rendering): a file whose one record besides its lighting is one a GLB states natively (its materials) keeps its rendering record, where it lost it and named it left out, and a GLB released with the lighting in its note has its record seeded from the note's and its note restated in the current version (HandoffRecord.block), where it was lit by the recipe alone and kept version 3.
    • Removed: HandoffRecord.block's rendering parameter and the note's rendering field (the lighting is the rendering record, HandoffRecord.rendering_record); records.js's HANDOFF and BLOCKS (RECORDS holds every record a GLB carries). A GLB written before is still lit as approved: its version 3 note's rendering, at the root extras, is read (HandoffRecord.glb_rendering, the viewer's renderingOf).
    • The export verifier's note gate says note verified, where it said handoff verified, and a file with no note as a reader says it (HandoffRecord.report), where it said no embedded handoff; verify_glb names the note at asset.extras.handoff. An export fingerprint holds the note at the head (note: each record it names by key, a size by kind alone), where it held the note among the records.
    • Tests: tests/test_export_snapshot.py TestTheCommitStatesTheLighting (4), test_fbx_media.py NoteTestCase (3), test_usd_delivery.py (the note at the head, a package written before), test_handoff_record.py TestReport (6), test_usd_delivery.py (a reader's report of a stage), test_export_verify.py TestFbxNoteGate (4), test_mesh_convert.py (a converted GLB says what its FBX says, a record the conversion leaves out named, the lighting choice through the build, the note compared with the records, a file lit by no record a GLB carries, a released file finished again, a record no reader declares held by name); test_handoff_record.py (sought, a report never stops the import), test_export_verify.py and test_usd_delivery.py (a record no reader declares held by name), each failed first; test_scene_records.py, test_preview_server.py and the GLB tests read the note at the head and the rendering record.
  • 2026-12-05 -- Changed: a GLB's records ride its data_export node, as an FBX's do, and the sounds its cues play ride inside (core_utils/engines/scene_export/scene_records.py new SceneRecords.glb_carrier, glb_root_level, glb_held, glb_load, glb_dump, glb_address, GLB_CONVERTER_ROOT; file_utils/mesh_convert/glb/edit.py GlbEdit.read(records=), GlbEdit.write; _sidecar.py strip_fbx_records, overlay_data_export, verify_glb; _media.py embed_sounds, sounds_held, restate_sounds; _mesh_convert.py new MeshConvert.embed_glb_sounds, fbx_to_glb(track_files=); glb/pipeline.py; audio_utils/_audio_utils.py AudioUtils.MEDIA_TYPES; handoff_record.py; net_utils/preview/kernel/extras.js recordsOf, records.js CARRIER). A GLB held its records in its root extras, which no stock importer brings in; each now rides the node named data_export at the root of the file's hierarchy, its JSON text at the top of the node's extras -- the FBX's node and address (data_export.<key>), where Blender's glTF importer brings it in as a custom property (measured: Blender 5.1's stock importer; the articulation text reads back as the record). GlbEdit.read lifts the records into the root for the passes and GlbEdit.write puts them back (records=False reads and writes the file as it is); a file written before, its records at the root, is read as it was and keeps that layout when a pass writes it (GlbEdit.records_to_node: its handoff names them there), and the viewer reads the node, then the root (recordsOf; records.js new RECORDS, the records a node holds, the handoff aside). A record's text is read as strict JSON (NaN and Infinity refused, as the viewer's JSON.parse refuses them), and verify_glb holds a text left on the node to its record's declaration; a carrier made for a document stating no scene keeps the nodes the document shows; GLB to FBX makes the GLB's carrier no object of the FBX. The sounds the audio record's cues play ride as bufferViews named by their files, as the lightmaps do, inside the conversion's one edit session (the FBX's own, else the host's track_files), and the record's media digests are restated from what rode. Every pass reads a record through MeshConvert.glb_record; the carrier-only _current_record is gone. The GLB's own handoff block stays at the root; the note names the node.

    • Tests: tests/test_scene_records.py (the node codec, the carrier at the root level, a node over a released root copy), test_mesh_convert.py (a written GLB's node and session, the sounds as named views, both carrier shapes read, a released file's layout kept, the FBX's own sound and the host's through the real converter, a text no reader reads failing the file), test_gltf2fbx.py (one carrier), test_preview_viewer_live.py (recordsOf against SceneRecords.glb_held), test_handoff_record.py, test_preview_server.py, red first; the GLB-record modules (1,290) pass, with the address and carrier expectations moved to the node.
  • 2026-12-05 -- Added: a USD delivery states each shot's range, a declared stand-in until OpenUSD states takes (core_utils/engines/shots/animation_record.py AnimationShot.start, end, new AnimationRecord.ranged, AnimationRecord.rate; core_utils/engines/scene_export/scene_exporter.py SceneExporterBase._usd_records(takes=); file_utils/usd/delivery.py UsdDelivery.package; new core_utils/upstream_patches.py OPENUSD_TAKES; core_utils/upstream_patch.py docs; scene_records.py SHOTS). A USD holds one timeline and OpenUSD has no form for takes (AOUSD forum, 2026-05-28), so a USD's animation record states each shot's start and end in seconds on that timeline, from the takes an FBX of the scene splits; an FBX's and a GLB's record state none, their takes being the timing. The fields are an extension for a reader of a USD (x-readers: usd; usd joins the record's consumers), so the generated Unity and web types are unchanged and the record stays version 3; a record of another version, or one stating no rate, is carried as it is and said. The package's time range covers every shot's range (a host samples only the frames that move; an importer sets its timeline from the stage's range). The stand-in is an UpstreamPatch with no replacement, whose probe watches OpenUSD's own schemas (those beside its core plugin, never a vendor's), their properties and its metadata fields for a name about takes; the sweep in tests/test_upstream_patch.py fails the day one appears and names what to delete. It holds under usd-core 26.05, Blender 5.1's USD 25.08 and Maya 2025's 23.11 with Arnold's schemas loaded.

    • Tests: tests/test_animation_record_shape.py TestWhereTheFileHoldsNoTakes (5), tests/test_upstream_patch.py PythontksOwnPatchesTest (4), tests/test_scene_exporter.py six in TestUsdRecords, tests/test_usd_delivery.py the stage's range, all failed first; test_scene_records and test_animation_record_shape updated where v1's frame fields were named retired.
  • 2026-12-05 -- Added: a USD delivery as one .usdz package (file_utils/usd/delivery.py new UsdDelivery.package, UsdDelivery.records; file_utils/usd/layers.py UsdLayers.author_records, record_property; file_utils/usd/_usd.py UsdzPackager.check_types; audio_utils/_audio_utils.py AudioUtils.with_media, cue_sounds, sound_files; core_utils/engines/scene_export/handoff_record.py HandoffRecord.CARRIERS["usd"]; core_utils/engines/scene_export/scene_exporter.py _usd_records, _usd_omissions). A USD delivery carries what the FBX of the same scene carries: a text root layer over the layer the host's exporter wrote (never edited) holds the scene's records on one data_export prim, each a custom string userProperties:<key> holding the JSON text the FBX holds as that node's user property, and the package holds every file the layer or a record names: its maps (a tile set's <UDIM> path, each tile), the lightmaps and probe, the sounds the cues play. UsdDelivery.records reads them back as a reader of the FBX applies them (SceneStoreBase.reader_values). A file outside the layer's folder rides under textures/ or audio/, numbered around the folder's own files, and a packaged copy of the layer names it there. A value whose name is no USD property name is left out and named, and the package's handoff is restated for the package (records as userProperties: attributes, files held by the package), its source and lighting choices kept. The export says what a USD states less than the FBX: its shots have no range (an FBX's takes are their timing), its probe is the bake's own, and its render-effect curves ride no proxy (a material's stands under the carrier node, which no layer holds).

    • RecordSpec.usd now names what states a record's fact in USD's own terms, "" where USD has none (DELIVERABLE_FORMAT.md, scene_records.schema.json: a record whose usd is "" declares no x-usd, where every record declared one before).
    • Tests: tests/test_usd_delivery.py new (21: the package validated by USD's own checker, a record's file, the cues' sounds and their digests, the handoff restated, a file outside the folder, two files of one name in either order, a tile set in or out of the folder, an asset array's empty entries, a refused type before anything is staged, a composed layer, a path with no file, a rewrite replacing the first whole); tests/test_usd_layers.py, test_handoff_record.py, test_scene_exporter.py (the records a USD states, the numeric channels left, the limits said), test_export_profile.py, test_scene_records.py new tests, each red first. The delivery, layer and handoff modules pass under usd-core 26.05 and, in a mayapy this run launched, Maya 2025's USD 23.11 (84 tests; 23.11 drops an asset array's empty entries where a layer copy is made, as _place_files says).
  • 2026-12-05 -- Changed: a .usdz refuses a file of a type its container does not list, and is written whole or not at all (file_utils/usd/_usd.py UsdzPackager.package, check_types; core_utils/engines/scene_export/export_profile.py OUTPUT_EXTENSIONS). package raised nothing for a .tga or a .psd and wrote a package some readers open without it; it now raises ValueError naming each such file and the types it takes, and writes through FileUtils.atomic_write, so a reader meets the package there was or the new one. UsdzPackager.from_layer, UsdMeshWriter.obj_to_usdz and both hosts' .usdz exports raise with it. The Scene Exporter's usd format ships <name>.usdz, and its version counter goes on from the .usd, .usda and .usdc layers a folder holds from before.

    • Tests: tests/test_usd.py, test_export_profile.py (test_a_usd_counter_counts_the_layers_delivered_before_the_package failed first).
  • 2026-12-05 -- Fixed: USD to GLB reads a package's maps where the USD library binds no OpenAsset (Maya 2025's USD 23.11), and packs separate metal and roughness maps inside a package (file_utils/mesh_convert/_usd2glb.py _asset_bytes, _packaged_bytes, _asset_file, _packer). Under Maya's USD every packaged map was written blank, and an end-to-end Unity check of a Maya scene through USD found every map missing; the bytes are now read out of the archive, a nested package included, and a packaged map is copied out where the packer needs a file.

    • Tests: tests/test_usd2glb.py test_a_packages_maps_are_read_where_the_library_opens_no_asset and test_separate_maps_inside_a_package_are_packed_too failed first; m3trik's MayaUsdMaterials twin passes in Unity.
  • 2026-12-05 -- Changed: a delivery's reflection probe and its copies are OpenEXR, the format of its lightmaps (img_utils/_img_utils.py new ImgUtils.encode_hdr_exr, encode_hdr_exr_pixels, HALF_FLOAT_MAX; file_utils/mesh_convert/_highlights.py HIGHLIGHT_PROBE_NAME, HIGHLIGHT_ENVIRONMENT_NAME, HIGHLIGHT_COPY_NAME; _lightmaps.py; core_utils/engines/scene_export/scene_records.py GlbMedia.exr, hdr_probe; handoff_record.py; net_utils/preview/kernel/probe.js decodeProbe; net_utils/preview/look_capture.py). A delivery held two HDR formats: its lightmaps OpenEXR, its probe files Radiance (.hdr), which a .usdz package does not take (png, jpeg, exr and avif are its images). The probe with the bake's lights drawn in, the environment and each highlight copy are now written as OpenEXR (RGB, half float, scanlines, ZIP) under <stem>_Lights.exr, <stem>_Environment.exr and <stem>_Highlight<n>.exr, in the FBX and the GLB alike; a GLB's view states image/x-exr. Measured on the test course's five probes: 5,585 KB as Radiance, 4,416 KB as OpenEXR; a value is held within 2^-11 of itself, where RGBE held it within 2^-8 of the texel's brightest channel.

    • A file written before stays readable: its record's .hdr names are read as they are, a GLB view that states image/vnd.radiance passes the media gate (GlbMedia.radiance: read, never written) and the WebXR viewer decodes it. The viewer fetches each three.js decoder with the first probe that states its format, so a page whose file carries no probe loads neither, and it turns an OpenEXR's rows, which three.js' EXRLoader hands bottom-up where its RGBELoader handed them top-down. The look capture's reader (LookCapture._view_pixels) decodes either by its bytes.
    • apply_glb_lightmaps(hdr_codec=) asks the host's codec for encode_hdr_exr(path) where it asked for encode_hdr_radiance(path). A codec without it (a host library released before) ships the maps and no probe, with a warning that names the cure. ImgUtils.encode_hdr_radiance and encode_hdr_radiance_pixels stay, as the Radiance form of the same image. The encoder names ZIP only to a cv2 that can be told (4.5.2 on); an older one writes it unasked. No record's version changes: a record names its files, and each file states its own format.
    • Tests: tests/test_img.py three new (test_exr_pixels_keep_their_channels_and_range: the header read as RGB, half, ZIP, scanlines; ..._hold_a_value_within_a_half_floats_step; ..._drop_what_is_no_radiance_and_hold_what_a_half_cannot); tests/test_mesh_convert.py held to the new names, views and precision (a copy within two half-float steps of the viewer's sum where RGBE allowed 2^-7; a GLB built from a finished FBX holds its probes value for value), with test_a_host_codec_from_before_openexr_ships_the_maps_and_says_why_no_probe new and a released Radiance view passing the media gate; tests/test_preview_viewer_live.py test_a_probe_is_read_the_right_way_up_from_either_encoding, new, in headless Edge: a metal seen from below reflects the probe's sky from an OpenEXR and from a released Radiance probe, and fails for OpenEXR with the row turn taken out; tests/test_look_capture.py test_a_probe_is_read_alike_from_openexr_and_from_a_released_files_radiance, new: one picture from either encoding, its rows in one order. Every test the change reaches: 4,780 ran in pythontk (12 skipped, 2 expected failures); after an independent review's fixes (the decoders fetched on demand, the ZIP flag asked of the cv2, this last test), the probe tests of the image, look-capture and conversion modules (77) and the viewer's 13 in headless Edge pass again.
  • 2026-12-05 -- Changed: the deliverable format states its rule and each fact by container, and each record what a USD carries of it (core_utils/engines/scene_export/scene_records.py Frame, RecordSpec.usd, RecordSpec.outside_frame, SceneRecords.json_schema; DELIVERABLE_FORMAT.md, scene_records.schema.json). The frame spells its length meter and states angles in radians and colors in linear Rec.709. Every deliverable record declares what states its fact in USD's own terms, where USD has such a thing (RecordSpec.usd, x-usd), and, out of the frame, what departs until its next version (RecordSpec.outside_frame, x-outside-frame; set with in_frame it raises). articulation v2, whose rotations and limits are degrees, is out of the frame until version 3 (it read as in); lightmaps and shadows state their lengths in the record's unit. The format document opens with the rule, each fact by container (FBX, GLB, USD) and the USD light convention; its records table gains In the USD and Frame.

Don't miss a new pythontk release

NewReleases is sending notifications on new releases.