github m3trik/pythontk v0.28.0
pythontk v0.28.0

36 minutes ago
  • 2026-12-04 -- Tests: two checks pass on the Linux runner (tests/test_material_reading.py, tests/test_img.py). Two spellings of a map's file are one path by the running platform's own rule (os.path.normcase), and the test spelled the second the Windows way everywhere: it now folds it as the platform it runs on would. Radiance HDR is written through OpenCV, an optional dependency the CI runners lack: the alpha-drop test writes it only where cv2 is installed, as the file's other cv2 tests do.

    • Tests: both failed on the Ubuntu runner (PR 103) and in a Linux copy of the old tree (cv2 hidden for the second); both pass there and on Windows, where the two files pass (474).
  • 2026-12-04 -- Docs: "recolor" and "colorway" in American spelling (core_utils/color.py, core_utils/engines/shots/manifest/manifest_tags.py, tests/test_color.py). The workspace's spelling check now knows the British forms of both words, so the ones prose still held are swapped.

    • Tests: check_english_only.py passes.
  • 2026-12-04 -- Docs: the front page leads with the engines; the build sheets guide and the file_utils README answer their review (docs/README.md, docs/build_sheets.md, pythontk/file_utils/README.md). The Tour opens on texture maps, capture ingest and the filtering language, and the trivia lines (remap, collapse_integer_sequence) are gone; the Operation line names real ids (sheet.check, maya.python.exec) in fewer words; the API reader's line no longer repeats the Packages section's --index. The build sheets guide's Contents lists its last two sections with no link split across lines, falloff says what it sets, the + menus read as a label, and sheet.convert and the Unity Manifest are named unitytk's. The file_utils README drops a USD version aside and a clause on who writes through UsdMaterials.

    • Tests: tests/test_doc_audit.py and tests/test_shots_manifest_actions.py (90 passed).
  • 2026-12-04 -- Docs: the material graph, the walk and the corpus's PNG writer name what they weighed (core_utils/engines/scene_export/material_graph.py, material_walk.py, material_corpus.py). CODE_STANDARD section 15 asks code that builds what an open standard covers to say why. A capture keeps a host's node types as plain data, because MaterialX and UsdShade each state a graph in a node library of their own and a capture is rebuilt in the host that saved it; the walk reads a host's dump through a small table, where MaterialX would be a new dependency for its nine node kinds; the corpus writes its one-color PNGs by hand, because the hosts' Python ships no Pillow. Where a material leaves its host, MaterialReading carries it in OpenPBR's and UsdUVTexture's terms.

    • Test(s): docstrings only; the 25 affected pythontk modules pass (2280, 2 skipped).
  • 2026-12-04 -- Added: ImgUtils.ensure_pot and generate_mipmaps take resize_image's normal_map and alpha_is_transparency (img_utils/_img_utils.py). Neither could be told what a map holds, so a normal map came back with its texels off unit length and a cutout with its edge darkened by the black under its holes. Told, both resample through resize_image, which renormalizes a normal map and fills the color under a cutout's holes first; untold, they resize as before.

    • Test(s): tests/test_img.py new test_pot_and_mips_renormalize_a_normal_map_when_told and test_pot_and_mips_keep_the_edge_when_told (red first: neither function took the option; each also holds the untold resize's error, over 0.1 off unit length and over 20 levels darker at the edge); the 25 affected pythontk modules pass (2280, 2 skipped).
  • 2026-12-04 -- Fixed: a 32-bit or float image keeps its values in WebP and GIF, each container stores the mode effective_mode names, and a YCbCr TIFF is readable (img_utils/_img_utils.py _CONTAINER_MODE_FALLBACKS, effective_mode). WebP and GIF had no row for a 32-bit integer or float image, so Pillow's own conversion clipped a 0-65535 ramp white past 255 and truncated a 0-1 float one to black (an error of 0.98 of full scale); their rows now send it through convert_mode, which scales. effective_mode, which the optimizer reports and predicts by, named a mode the file did not hold: 1-bit, PA, CMYK and YCbCr in WebP, 1-bit in GIF and JPEG, YCbCr in JPEG, and 32-bit in KTX2, whose encoder stages it as 8-bit gray. A CMYK or YCbCr source raised in the KTX2 encoder, whose staging PNG holds neither; it is staged as RGB. Pillow wrote a YCbCr TIFF it cannot read back ("image file is truncated"); TIFF stores it as RGB now. .tif reads .tiff's row.

    • Test(s): tests/test_img.py new test_every_mode_keeps_its_values_in_the_mode_it_is_said_to (a ramp in ten modes to eight containers, where the old test wrote blank images; red first: the modes above, the clipped values, the unreadable TIFF); test_lossless_containers_hold_everything covers .tif; tests/test_ktx2_encoder.py test_staged_modes_match_the_fallback_table stages every mode, not only the table's rows (red first: CMYK); the 22 affected pythontk modules pass (2153, 2 skipped).
  • 2026-12-04 -- Fixed: WebP keeps the color under a transparent pixel (img_utils/_codecs.py _apply_lossy_kwargs; file_utils/mesh_convert/_textures.py). Its writer drops the color under an alpha of 0 to black unless told exact, and a lossless save did: a packed map lost its metallic and occlusion wherever its smoothness was 0, and a cutout lost the fill under its holes that keeps its edge from darkening when it is filtered. Every WebP save passes exact=True now, the GLB optimizer's included; a caller's own exact still wins.

    • Test(s): tests/test_img.py new test_a_transparent_pixel_keeps_its_color (red first: the lossless save blacked it out; the lossy one kept it within 8 levels before and after), and the WebP LA case of the test above; tests/test_mesh_convert.py new test_optimize_keeps_the_color_under_a_clear_texel (red first: the optimizer's lossless save, which normal maps take, blacked it out).
  • 2026-12-04 -- Tests: the USD checks run USD's validation framework, not its deprecated ComplianceChecker (tests/test_usd_materials.py, tests/test_usd_asset.py). usd-core 26.5, the pythontk[usd] floor, warns that UsdUtils.ComplianceChecker will be removed; usdchecker already runs the framework. The materials layer is now checked by it, and the asset's checker test is gone, since the asset's framework test already covers the same rules.

    • Test(s): both files pass (53).
  • 2026-12-04 -- Changed: BakeCache.source_of reads a bake's legacy source sidecar under a notice whose window is a version (file_utils/bake_cache.py). The sidecar predates the record a bake carries inside it. Reading it now warns, naming its removal in pythontk 0.29.0 and not before 2027-01-03, so the release gate holds the window; legacy_suffix and the hosts' BAKE_SOURCE_SUFFIX go with it.

    • Test(s): tests/test_bake_cache.py new test_a_legacy_sidecar_is_read_under_a_notice_that_names_its_release (red first: no warning), and the older sidecar's test reads under assertWarns; the file passes (31).
  • 2026-12-04 -- Removed: five names kept "for one release" in prose, with no notice and no caller left (geo_utils/shadow_horizon.py HorizonMap; core_utils/engines/shots/shot_plan.py ShotPlanner.objects_to_adopt; file_utils/mesh_convert/_mesh_convert.py MeshConvert.OPTIMIZE_WORKERS; file_utils/mesh_convert/glb/fades.py PointerChannel.color_key, DEFAULT_COLOR). Their releases shipped long ago, and nothing warned, so nothing would have removed them. Each has a MOVED_NAMES row naming its replacement: HeightFieldMap, ShotApply.apply, ImgUtils.ENCODE_WORKERS, PointerChannel.color_stops.

    • Test(s): their tests went with them; the full suite passes (10,172: 10,126 passed, 46 skipped); check_api_surface.py pythontk --check passes.
  • 2026-12-04 -- Changed: reading a hand-off manifest's material entry of the shape before the reading (manifest version 1 or 2) warns, and its window is a version (core_utils/engines/scene_export/material_reading.py MaterialReading.from_entry; core_utils/handoff/manifest.py HandoffManifest.OLDEST). The shape was read "for one release", a sentence nothing checked. Now a Deprecation.warn names its removal, pythontk 0.29.0 and not before 2027-01-03, so the release gate fails when the window closes; OLDEST then becomes 3.

    • Test(s): tests/test_material_reading.py new test_the_older_shape_is_read_under_a_notice_that_names_its_release (red first: no notice), and the older-shape tests read under assertWarns, so no notice leaks into a run; affected tests 939 (938 passed, 1 skipped) and the material corpus (10 passed, 1 xfailed).
  • 2026-12-04 -- Fixed: MaterialFamilies.gltf_props reads the lobe extensions the pbr family holds values of, and says the rest (core_utils/engines/scene_export/material_record.py). Transmission, specular, the index and clearcoat (KHR_materials_transmission, _specular, _ior, _clearcoat) are read as the core is, with glTF's default for a property an extension leaves unsaid; a lobe's texture, which no reader carries, is said, with its factor where that is not 1. Every other extension of a material (unlit, the archived specular-glossiness, sheen) is said, not carried. None was read before, and nothing said so: a GLB's clearcoat crossed gltf_to_fbx as no coat.

    • Test(s): tests/test_material_record.py new test_the_lobe_extensions_the_family_holds_are_read (red first: every lobe value missing), test_what_no_value_holds_of_an_extension_is_said and test_a_lobe_texture_is_said_whatever_its_factor (red first: a map under a factor of 1 went unsaid); tests/test_material_record.py and tests/test_gltf2fbx.py pass (107).
  • 2026-12-04 -- Fixed: MaterialWalk.inputs folds an emission weight into the emission color when the shader has no input for it, as it does a base weight (core_utils/engines/scene_export/material_walk.py). Such a shader shows the color times the weight; the weight was dropped, so an emission at weight 0 (a white color left unlit) would glow. Maya's and Blender's shader rows all take the weight, so neither host's result changes.

    • Test(s): tests/test_material_walk.py new test_an_emission_weight_the_shader_has_no_input_for_goes_into_its_color (red first: the weight-0 color glowed).
  • 2026-12-04 -- Fixed: MaterialGraph.diff names a value that came back another shape (core_utils/engines/scene_export/material_graph.py). A number saved and a list rebuilt (a socket rebuilt as a vector) raised TypeError, and a saved 0 read as an empty list or mapping, so 0 against {} was no difference. Each is now one line: surface.values.Coat Weight: 0.5 became [0.5, 0.5, 0.5].

    • Test(s): tests/test_material_graph.py new test_a_number_that_came_back_a_list_is_named (red first: the TypeError).
  • 2026-12-04 -- Tests: the image checks read pixels through numpy, on any Pillow the package takes (tests/test_img.py, tests/test_ktx2_encoder.py, tests/test_map_optimizer.py, tests/test_mesh_convert.py). Image.getdata is deprecated since Pillow 12.1, and its successor get_flattened_data is 12.1's, above the Pillow>=9.1 floor; library code reads neither.

    • Test(s): the 11 changed tests pass.
  • 2026-12-04 -- Fixed: usd_to_glb writes a part that carries its own look once, however often it is placed (file_utils/mesh_convert/_usd2glb.py). The mesh cache keyed each placement by the path of the material it binds, and a material inside the part's prototype has a different proxy path under every placement, so each placement read the mesh again and wrote another copy into the GLB. Meshes and materials are keyed by their own prim, the prototype's for a proxy.

    • Test(s): tests/test_usd2glb.py new test_an_instanced_part_wearing_its_own_look_is_one_mesh (failed before: two meshes); the USD suites pass (83).
  • 2026-12-04 -- Added: CadImport.material_name and UsdMaterials.author, the two rules UsdAsset reached as private methods (file_utils/cad_import/_cad_import.py, file_utils/usd/materials.py, file_utils/usd/asset.py). material_name is the color-zone rule a record's meshes follow, which any backend writing a record names its colors by, so it is public; author writes a document's materials into a stage the caller holds and saves (write is it, opening and saving a layer), and says when two materials' names make one prim's, the later replacing the earlier. UsdAsset and its tests call them by these names.

    • Test(s): tests/test_usd_materials.py new test_two_materials_on_one_prim_are_said (red first: no word); the USD and CAD suites pass (203); check_api_surface.py pythontk --check passes.
  • 2026-12-04 -- Fixed: UsdMaterials.write leaves out a map whose image is embedded, and says so (file_utils/usd/materials.py). A GLB's document names its images by bufferView, with no uri, and the write raised a KeyError on the first such map. USD names a map by its file, so such a map is now written as no map (its factor kept, a warning naming the material and the map), the way read reads a map that names no file.

    • Test(s): tests/test_usd_materials.py new test_an_embedded_map_is_left_out_and_said (failed before: KeyError: 'uri'); the USD suites pass (131).
  • 2026-12-04 -- Fixed: usd_to_glb carries a mesh's doubleSided, and says which shapes it does not carry (file_utils/mesh_convert/_usd2glb.py). USD states doubleSided on the mesh and glTF on the material, and the conversion read neither, so a thin part authored double-sided (a DCC's export default) had its back faces culled. Each mesh now wears its look as it is sided, the look written once per side worn (a look the material itself states double-sided stays so), and a double-sided mesh with no look glTF can state wears glTF's default material, double-sided. A gprim that is not a mesh (an implicit shape, curves, points) stood as an empty node with no word; it is now named in the warning that already names skeletons, cameras and lights.

    • Test(s): tests/test_usd2glb.py new test_a_double_sided_mesh_wears_its_material_double_sided, test_a_look_worn_only_double_sided_is_written_once and test_a_shape_that_is_no_mesh_is_said (each failed before); the USD and CAD suites pass (195).
  • 2026-12-04 -- Fixed: usd_to_glb writes a valid GLB of a stage that draws nothing, and says plainly what it cannot open; UsdMaterials.read no longer reads a damaged layer as no materials (file_utils/mesh_convert/_usd2glb.py, file_utils/usd/materials.py, file_utils/usd/layers.py). A stage of transforms alone wrote an empty bufferViews array, which the Khronos validator rejects; a missing file raised pxr's error through a stage is None check that never ran (Usd.Stage.Open raises), and read swallowed any open error, a damaged layer included. Now a missing file is a FileNotFoundError (read: no materials, as before), and a layer pxr cannot read raises its Tf.ErrorException, a RuntimeError, as skinning_methods documents (its own dead check is gone too).

    • Test(s): tests/test_usd2glb.py new test_an_empty_stage_is_a_valid_glb (validator: 0 errors) and test_a_stage_not_there_or_not_usd_raises; tests/test_usd_materials.py new test_a_layer_pxr_cannot_read_raises (each failed before); the USD and CAD suites pass (193).
  • 2026-12-04 -- Fixed: UsdLayers.expand_lod_variants given a relative dst writes copies that compose from anywhere (file_utils/usd/layers.py). The copies name one another by dst's paths, so a relative dst was written into them as a path relative to the working folder, which USD reads relative to the naming layer: opened from another folder, the expanded stage lost every layer behind its root. dst is made absolute first.

    • Test(s): tests/test_usd_layers.py new test_a_relative_destination_reads_from_anywhere (failed before: the payload's copy could not be opened).
  • 2026-12-04 -- Fixed: UsdAsset reads a backend's OBJ material names as OBJ states them (file_utils/usd/asset.py, file_utils/usd/materials.py). A usemtl met again started a second group of that name, whose subset replaced the first one's faces, which then wore nothing (an invalid partition); a name that is no USD identifier (Steel, brushed, 1.4301) raised a pxr error mid-write; and an MTL name with a space read only its first word, so its color was lost. A name met again now adds to its material's faces; each zone's prim is its name's USD spelling (_prim_name, as parts and placements are), bound the same way, its own name the material's displayName; and UsdMaterials.read names a material by its displayName, else its prim name, as usd_to_glb names a node.

    • Test(s): tests/test_usd_asset.py new TestRecordObj (a material named again is one subset, a valid partition; names that are no identifier bind their faces, of their MTL colors, each failed before; the second also fails with the old MTL reader alone); tests/test_usd_materials.py new test_a_material_is_named_by_its_display_name (failed before); the USD and CAD suites pass (189).
  • 2026-12-04 -- Fixed: materials of one name stay apart in usd_to_glb and UsdMaterials.read; added UsdMaterials.read_material (file_utils/usd/materials.py, file_utils/mesh_convert/_usd2glb.py). Both kept one material per name, so in a stage composed of assets that each name a material alike (two Looks/Metal), the second was dropped and its meshes wore the first one's look. read now reads each Material prim once (an instance's once, however often it is placed). usd_to_glb reads a material when a mesh first binds it, by prim, so the GLB holds the materials its meshes wear, and an unbound look's maps are no longer embedded. read_material reads one prim into a glTF document; read is built on it.

    • Test(s): tests/test_usd_materials.py new test_each_material_prim_is_read_once; tests/test_usd2glb.py new test_each_mesh_wears_its_own_material_of_a_shared_name (both failed before); the affected modules pass (pythontk 25 modules, 1,920 passed, 10 skipped; material_corpus 10 passed, 1 xfailed; unity_e2e passed).
  • 2026-12-04 -- Fixed: placements of one name each keep their LOD group in a GLB (file_utils/mesh_convert/glb/lods.py). GlbLods.apply keyed each node by its name path, so sibling nodes of one name (a CAD assembly's placements of a part share their record's name, the display name usd_to_glb writes) pooled their levels into one malformed group: no MSFT_lod was written, and every level of every placement drew at once. Nodes are keyed by index now; a level is still read by its name.

    • Test(s): tests/test_glb_lods.py new test_placements_of_one_name_each_state_their_group; tests/test_usd2glb.py new test_placements_of_one_name_each_keep_their_lod_group (both failed before); the LOD, usd_to_glb and LodChain suites pass (116).
  • 2026-12-04 -- Docs: the file_utils README's USD section is a list (pythontk/file_utils/README.md). UsdLayers, UsdAsset and UsdMaterials each get a line, where one 180-word sentence held all three; a placement's own color joins UsdAsset's line from a paragraph of its own.

  • 2026-12-04 -- Docs: the build-sheet guide is tighter (docs/build_sheets.md). Code names a sheet's author never meets are cut from the prose (the format's own keys stay), the ghost's settings are said once in the words table, and a row's own helper gets a paragraph of its own instead of a table cell. The four tables and the sentence test_shots_manifest_actions.py holds to the templates are unchanged. 4,936 words to 4,700.

  • 2026-12-04 -- Docs: the front page is shorter (docs/README.md). Each infrastructure entry, package row and guide link is a line now, and the internals are gone (the resolver, the module walk, how an operation host runs); every example stays, with the outputs test_doc_audit.py pins. 1,994 words to 1,225.

  • 2026-12-03 -- Added: FileDependencies.free_path, the path a write takes in a folder other scenes and owners may hold, and FileUtils.remove_files(keep=), the files a cleanup leaves because something still reads them (file_utils/file_dependencies.py, file_utils/_file_utils.py). Both hosts' shadow rigs composed claims, strangers and unique_path themselves to name a new map, and compared spellings themselves to spare a map a surviving plane reads. Each is one call now, written once. keep compares as the filesystem names a file (is_same_file), so another spelling of a file that is still read, or a link to it, is spared too.

    • Test(s): tests/test_file_dependencies.py new TestFreePath (3: a free name, a name only its owners read, a stranger unless the host wrote it); tests/test_file.py new test_remove_files_keeps_a_file_something_still_reads; the 18 modules the change reaches pass (1,757 tests, 4 skipped).
  • 2026-12-03 -- Docs: ImgUtils.effective_mode names TIFF alone as the container that holds every mode, and FileUtils.remove_files says what it was weighed against (img_utils/_img_utils.py, file_utils/_file_utils.py). PNG has had its own row in _CONTAINER_MODE_FALLBACKS since earlier today, and the docstring still said PNG holds everything. remove_files names move_to_trash, FileDependencies.remove_superseded and TempArtifacts, and why none of them removes the files a cleanup made. Lines over 88 columns in today's code wrapped (img_utils/_img_utils.py, geo_utils/polyline.py, shots/shot_model.py, the MOVED_NAMES row in __init__.py).

  • 2026-12-03 -- Fixed: with no scipy, PointCloud.match_one_to_one pairs exact partners outright at any scale, and a large rest pairs nearest first instead of in a solve that takes minutes (geo_utils/pointcloud.py PointCloud.match_one_to_one, nn_query, new EXACT_LIMIT, new private _nearest_first; math_utils/_clustering.py). Without scipy, nn_query scans by brute force, and it measured each distance in the expanded form |q|^2 + |t|^2 - 2q.t, which cancels: exact partners came out up to 1.5e-8 apart on a unit grid and past the default 1e-6 tolerance near 100 units, so a symmetric set missed the outright pairing and went to the full solve. The nearest targets it picks are now measured again directly. Without scipy that solve is a pure-Python Hungarian, which grows with the cube of the points (0.39 s at 400, about 20 s at 1,600, measured). A rest past EXACT_LIMIT (500) points now pairs nearest first instead, in rounds of one nearest-neighbor query, each source taking the first free one of its eight nearest targets. With scipy nothing changes. MathUtils.linear_sum_assignment is handed the cost as an array, not a list, and its pure-Python fallback accepts one.

    • Test(s): tests/test_pointcloud.py new test_without_scipy_exact_partners_pair_outright_at_any_scale and test_without_scipy_a_large_rest_pairs_nearest_first (red first, against the committed code: the solver was handed the matrix at both scales and for the large rest); the 8 modules the change reaches pass (406 tests).
  • 2026-12-03 -- Tests: a round trip's __ARTIFACT_FILE__ is held to name the payload (tests/test_bridge.py). ScriptRoundTripDeliverer sets it with __OUT_FILE__, and no test read it.

    • Test(s): new HandoffRoundTripTest.test_the_artifact_file_is_the_payload_too, which fails with the assignment removed (a mutation run); test_bridge 126 passed.
  • 2026-12-03 -- Docs: ImgUtils.resize_image's alpha_is_transparency is described in its own terms (img_utils/_img_utils.py, tests/test_img.py). It named a Unity import setting, which this package sits below (check_layers.py).

  • 2026-12-03 -- Fixed: the live viewer tests load three.js from a per-run cache and say what a page that never comes ready waits on (tests/conftest.py new serve_cdn_from_cache; tests/test_preview_viewer_live.py, tests/test_shadow_web.py, tests/test_articulated_rig_web.py). Each live-page test opens a fresh browser, which fetched the viewer's three.js modules from unpkg.com for every page, some 2,400 requests a run, and one failed response left the page's kernel unrun: the test waited out its 180 s and failed on a bare timeout. Every page now answers unpkg.com from a cache the run fills once (each file's fetch bounded and tried twice), and the ready wait fails naming the requests still pending and the console.

    • Test(s): the three live-viewer modules pass: 229 tests, 225 passed, 4 skipped.
  • 2026-12-03 -- Fixed: convert_spec_gloss_to_pbr(image_size) keeps each map's aspect (core_utils/engines/textures/map_factory/_converters.py); added ImgUtils.fit_within, the one fit every texture ceiling uses (img_utils/_img_utils.py, core_utils/engines/textures/map_optimizer.py, file_utils/mesh_convert/fbx_media.py, file_utils/mesh_convert/_textures.py). A spec-gloss conversion under image_size resized each map larger than it to image_size square, so a 64x32 set came back 16x16, while the docstring promised the aspect kept. It now caps the longest edge and derives the other from the aspect. ImgUtils.fit_within(size, max_edge) is that fit (rounded, at least 1; the size itself when it fits or there is no ceiling). The Map Optimizer's private _fit_within and the copies written out in FbxMedia.downsize and the GLB texture pass now call it.

    • Test(s): tests/test_img.py new FitWithinTest (2), tests/test_map_factory.py new test_a_spec_gloss_conversion_keeps_its_aspect_under_image_size (red first: three 16x16 maps for 16x8); tests/surface_snapshot.json gains ImgUtils.fit_within; the affected modules pass: 3,712 tests, 3,700 passed, 10 skipped, and 2 errors, both a live-viewer page that stalled loading three.js from its CDN (the test pages now load it from a cache: see the CDN cache entry); the three live-viewer modules then pass, 229 tests, 225 passed, 4 skipped.
  • 2026-12-03 -- Fixed: a cutout texture resized keeps its edge's color (img_utils/_img_utils.py, core_utils/engines/textures/map_registry.py, core_utils/engines/textures/map_optimizer.py, file_utils/mesh_convert/fbx_media.py, file_utils/mesh_convert/_textures.py, file_utils/mesh_convert/glb/edit.py, file_utils/mesh_convert/_images.py). The 2026-12-02 resize fix resamples every band on its own, as a data alpha (a packed smoothness, a mask) needs. A cutout's alpha is coverage instead, and the black under its holes then bled into its edge: a dark fringe around every cutout a ceiling halved (a glTF MASK base color's darkest visible texel came out 196 levels below its color). resize_image takes alpha_is_transparency, as Unity's "Alpha Is Transparency" works: the color under each hole is filled from the nearest visible texel (fill_empty_texels) before the straight resample, so the edge keeps its color, and the alpha resamples as before. Added MapRegistry.alpha_is_transparency(map_type): true where a type's declared layout puts Opacity in its alpha (an Albedo_Transparency). The Map Optimizer's size ops and FbxMedia.downsize read it. The GLB texture pass sets the flag for an image that only MASK and BLEND materials sample, and only as their base color: an OPAQUE material shows the color under the holes, and another slot reads the texels as they are. Added GlbEdit.texture_infos(node), which walks every textureInfo under a material; the unreferenced-texture prune held that walk as a nested function and now calls it. The fill costs 0.7 s on a sparse 4K map (4 s without cv2), and runs only when a cutout is resized.

    • Test(s): tests/test_img.py new ResizeKeepsACutoutsEdgeTest (2), tests/test_map_registry_register.py new test_alpha_is_transparency_where_a_layout_puts_opacity_in_alpha, tests/test_map_optimizer.py new TestCutoutResample (2), tests/test_fbx_media.py new test_downsize_keeps_a_cutouts_edge, tests/test_mesh_convert.py new test_a_cutout_keeps_its_edge_and_any_other_use_its_color (red first: every edge 20 or more levels dark, the flag unknown); tests/conftest.py gains cutout_map and edge_darkening; the affected suites pass: pythontk 54 modules (3,861 tests, 10 skipped; one live-viewer page stalled at 180 s mid-run, and it passes alone in 7 s, its GLB holding no texture).
  • 2026-12-03 -- Added: FileUtils.held_aside(paths), which holds files out of their folder for a block (file_utils/_file_utils.py). Inside the block each held file's name is free, so a rebuild writes its new file there, where a free-name rule would have written <name>_1 beside it. A clean exit lets the held files go; a raise puts each back over whatever the block left, then re-raises the block's error. The files wait in a scoped TempArtifacts store, which keeps (and names) one that could not go back while the others still go. The shadow rigs' Rebuild in mayatk and blendertk is its first reader.

    • Test(s): tests/test_file.py new test_held_aside_frees_the_names_and_puts_them_back_on_a_raise and test_held_aside_puts_back_every_file_it_can (red first: a file that could not go back raised over the block's error and kept the next one out); tests/surface_snapshot.json records the new name; the affected suites pass: pythontk 17 modules (1,731 tests, the surface gate once its snapshot took the name), uitk 2, mayatk 24 (2,702 tests, 1 skipped), blendertk 11 suites (2,183 checks), tentacle 13 in Maya (795, 22 skipped), extapps 2 (137), the Unity end-to-end tests (8) and the samples check; after the per-file move-back, tests/test_file.py and the surface gate pass again (213).
  • 2026-12-03 -- Added: a save-mode script reads the file the user gets as __ARTIFACT_FILE__ (core_utils/handoff/app_handoff.py ScriptRunDeliverer, ScriptRoundTripDeliverer). A save-mode template writes __OUT_FILE__, a hidden staging sibling promoted once the run succeeds, so whatever it named after its scene took the staging file's name: blendertk's save to a Maya file put a scene's textures in a folder named _<stem>_saving (measured). __ARTIFACT_FILE__ names the promoted file; on a round trip it is the payload, as __OUT_FILE__ is.

    • Test(s): tests/test_bridge.py new test_the_file_the_user_gets_is_named_beside_its_staging_sibling (red first: the token was left in the script); the affected suites pass: pythontk's 4 (408 tests, 1 skipped), uitk's 1 (193 tests), mayatk's 18 (2,580 tests, 0 failures, 1 skipped), blendertk's 23 (3,456 checks), tentacle's 2 (90 tests) and 1 in Maya (318 tests); m3trik/tests/material_corpus 10 passed (1 expected failure), m3trik/tests/unity_e2e 8 passed and the Unity samples are in sync.
  • 2026-12-03 -- Added: CancelScope.report (core_utils/cancel_scope.py); MapFactory's batch loops call it (core_utils/engines/textures/map_factory/_map_factory.py). One checkpoint for a loop that reports its progress: it hands (current, total, message) to the callback, raises OperationCancelled on the callback's explicit False (the progress-bar contract tick matches; None is no cancel), then checks the ambient scope. Both hosts' Smart Bake report through it. MapFactory's private _checkpoint did the same from a result its caller computed; its three call sites now call report or check, and it goes.

    • Test(s): tests/test_cancel_scope.py new TestReport (3: the callback hears each step, a False cancels and None does not, the ambient scope is checked with or without a callback) (red first: no such method); tests/test_map_factory.py's cancel tests pass unchanged; the affected suites pass: pythontk 25 modules (1,769 tests), uitk 2 (143), mayatk 16 (2,263), blendertk 21 suites (2,974 checks), tentacle 5 (38) and 8 in Maya (797), extapps 3 (159), unitytk 3 (71), unity_e2e 8.
  • 2026-12-03 -- Added: PointCloud.match_one_to_one (geo_utils/pointcloud.py). Pairs each source with a distinct target. A source whose nearest target lies within the tolerance, and is no other source's nearest, takes it outright; only the rest go to MathUtils.linear_sum_assignment, among themselves. Both hosts' footprint-preserving UV mirror built an n x n list of squared distances in Python and solved it whole, even for a symmetric shell, where every UV's flipped position lands on a slot. Matching a set against its own mirror image now costs one nn_query: 0.011 s for 10,000 points with scipy and 1.07 s without it (measured on a symmetric grid), where the mirror's matrix alone took 3.05 s to build at 4,096.

    • Test(s): tests/test_pointcloud.py new TestMatchOneToOne (5: a set matched to its mirror never reaches the solver, the rest take the least total distance among themselves, coincident points each take their own target, the answer is the same without scipy, the counts must match) (red first: no such method); the affected suites pass: pythontk's 5 (153 tests), mayatk's 10 (1,052 tests, 0 failures), blendertk's 8 (1,080 checks), tentacle's 4 (202 tests); m3trik/tests/unity_e2e 8 passed and the Unity samples are in sync.
  • 2026-12-03 -- Added: ShadowHorizon.bake_key (geo_utils/shadow_horizon.py). The digest of what bake reads from the same arguments (the meshes in the map's frame, the ground, the up axis, the size, spans, bounds and padding, and the map format's marker), for a host to stamp beside a map and compare before it bakes again. Both hosts' Shadow Rig computed their own key, word for word the same, over the targets' world geometry; it is written once here, and a -0.0 the rounding leaves reads as 0.0, where float noise around zero changed the key.

    • Test(s): tests/test_shadow_horizon.py new TestBakeKey (2: the key changes with each input the bake reads; float noise and a signed zero are no change) (red first: no such method, and the hosts' key changed under noise of 1e-17 across zero); the affected suites pass: pythontk's 7 (358 tests), mayatk's 5 (277 tests, 0 failures), blendertk's 5 (633 checks), tentacle's 1 (65 tests); m3trik/tests/unity_e2e 8 passed, the .NET models 33 passed, unitytk's suite passed and the Unity samples are in sync.
  • 2026-12-03 -- Added: Polyline.center_in_tube, Polyline.tube_radius and Polyline.dedupe_consecutive, and order_points(from_end=True) (geo_utils/polyline.py). The Tube Rig's centering and radius math lived in mayatk alone, over Maya's closestPointOnMesh, while blendertk's twin read an edge path off the tube's wall. Both are host-free now: each takes the host's nearest-wall query (point -> (wall point, outward normal), or None), and both hosts call them. With from_end, order_points walks a path from one of its ends, the one nearer the first point, where a walk begun mid-path ran to one end, jumped back and folded over itself.

    • Test(s): tests/test_polyline.py new TestOrderPointsFromEnd (3) and TestTube (4, an analytic tube of radius 1) (red first: no such methods or argument); the affected suites pass: pythontk's 5 (78 tests), mayatk's 15 (2,272 tests, 0 failures, 1 skipped), blendertk's 28 (3,720 checks), tentacle's 6 (280 tests, 22 skipped); m3trik/tests/material_corpus 10 passed (1 expected failure), m3trik/tests/unity_e2e 8 passed and the Unity samples are in sync.
  • 2026-12-03 -- Added: FileUtils.remove_files, a cleanup's one call that names the files it could not remove (file_utils/_file_utils.py). remove_files(paths, warn=None) removes each file still on disk and returns the ones removed; a path already gone, empty or repeated is skipped, a folder is never removed, and a file held open by another program or read-only stays, and warn gets one message naming each with its reason (describe_lock: "in use by Google Chrome (PID 8421)", "read-only"). Written for the shadow rigs' map deletes, which passed such a failure in silence.

    • Test(s): tests/test_file.py new test_remove_files_names_what_it_could_not_remove (a real held file, Windows) and test_remove_files_is_quiet_when_everything_goes (red first: no such method); the affected suites pass: pythontk's 34 modules (2,808 tests; one live-viewer test timed out in its 180 s browser wait under the parallel load and passes alone in 15 s), uitk's 53 (3,796 tests), mayatk's 17 (2,040 tests, 0 failures, 1 skipped), blendertk's 94 (7,593 checks); m3trik/tests/material_corpus 10 passed (1 expected failure), m3trik/tests/unity_e2e 8 passed, the .NET models 33 passed and the Unity samples are in sync.
  • 2026-12-03 -- Added: StrUtils.listed, a list a message names on one line: the first few and a count of the rest (str_utils/_str_utils.py). listed(items, limit=5, sep=", ") gives "a, b and 2 more", so a message about a thousand objects stays one line. Written for the bridge importers' visibility replay, which now names what it skips.

    • Test(s): tests/test_str.py new test_listed_names_the_first_few_and_counts_the_rest; tests/surface_snapshot.json updated; the affected suites: pythontk's 6 pass, and downstream mayatk's 43 (3,582 tests, 0 failures, 44 skipped), blendertk's 81 (6,715 checks: one failure, the use_nodes guard on another change's test line, fixed in its own commit and passing on re-run, 332/332), material_corpus, unity_e2e and the Unity samples check pass.
  • 2026-12-03 -- Changed: comments, docstrings and docs are in American spelling (1,297 words in 259 files); one record states its units in one spelling. The rule is American English in everything a person reads, and the prose written before it was British ("colour", "normalise", "centre"). m3trik/scripts/american_spelling.py swapped the words in comments, docstrings and Markdown prose only, never a name: an identifier, a key, a string the code compares, a word in backticks or alone in quotes, a word that is also a name in the same file. The scene-record copies built from these docstrings (records.js, DELIVERABLE_FORMAT.md, scene_records.schema.json) were regenerated. One record went further: the light rig schema reads its text from a docstring and from its fields, so its field descriptions changed with it (light_rig_payload.py, 8 words in help= strings), and tests/test_light_rig_payload.py reads "centimeters". Four files that held another session's uncommitted work during the pass were swapped once they were committed (19 words; the six test modules they reach: 613 passed). img_utils/_img_utils.py followed the same day, once its other work was committed (55 words; the 21 test modules it reaches: 1,997 passed, 2 skipped, and one browser test that timed out under a parallel run passed alone). Sentence strings (messages, labels) wait for a pass run with the suite; the English gate freezes their count per file, so it only falls.

    • Test(s): every changed word is a swap from the table, each Python file's syntax tree is the same but for its docstrings (ast.dump), and each C# file is the same outside its comments, checked for each of the 254 files; the suite: 10,068 passed, 5 failed, and each of the 5 passes now: the light rig test (fixed here), two that read a pytest cache left stale by the rename of test/ to tests/ (cache cleared), a collector count and a live-browser load that pass on a rerun.
  • 2026-12-03 -- Removed: five ImgUtils methods that restated one Pillow call each, and fixed: create_mask reads its corners like any other pixel and takes an RGB color (img_utils/_img_utils.py; __init__.py MOVED_NAMES). Nothing called im_help, set_contrast, fill, convert_rgb_to_gray or convert_rgb_to_hsv, and each had a defect of its own: fill drew over the image it was handed (and raised on a grayscale one), convert_rgb_to_gray returned one value per column for a grayscale image, im_help printed rather than returned. Each one's moved-names row names the Pillow call. create_mask forced its four corners to the background whatever they held, so a foreground corner came back masked out; and an RGB mask color failed to broadcast into its RGBA data. The unused ImageDraw import is gone. The surface snapshot also gains ImgUtils.channel_loss_warning, which it had missed since that method arrived earlier today: test_surface_snapshot was red from then until now, because affected_tests.py did not select it for a module that adds a public name (fixed in m3trik).

    • Test(s): tests/test_img.py new test_create_mask_reads_the_corners_like_any_pixel and test_create_mask_takes_rgb_colors (both red first); the removed methods' own tests went with them. The suites the change reaches: pythontk's 134 (7,976 tests) pass but one, a live viewer's page wait that timed out under load and passes alone in 3 s (the backlog's live-viewer entry); m3trik's, the material corpus, the Unity e2e, models and samples gates pass.
  • 2026-12-03 -- Fixed: AgentInstructions.init finishes a run that stopped half way, the class resolves at the path its module had, and section, coverage and sync read what they got wrong (core_utils/agent_instructions/__init__.py, _agent_instructions.py). A review of the 2026-12-02 additions, each fault reproduced first. init returned at once wherever a pack already sat, and the pack is the first file it writes, so a run stopped after it (a file it could not write, a cancel) left a tree with no pointer block, stub or hook that the next run called done: a codebase that takes packs now keeps them as they are and gets what its layout lacks, in mode. from pythontk.core_utils.agent_instructions import AgentInstructions raised ImportError once the module became a package: the path is published again (lazy_exports), loading nothing until used. section told a code block by its lines' text, so a block that quoted one of the document's own headings cut the section inside it, and it knew no ~~~ block and no fence longer than three marks: blocks are told by position now (_unfenced, which the import reader, the rule readers and check's section list share), and ## 1.5 Title is no longer section 1. coverage dropped a table row that was not three cells without a word, so an unescaped bar in a cell read as a rule with no row: it reports the row (row) and still reads it, reports a second row for one rule (duplicate), and says when its standard or its packs folder is not there (standard, source) where it said the table was missing. sync and init made a root that did not exist, so a typo left a stray project with a hook in it: they refuse one that is no folder. sync rewrote an existing .claude/settings.json in two-space ASCII: it keeps the file's indent and its letters.

    • Test(s): tests/test_agent_instructions.py, 12 new, red first (12 failed): the half-way run, the path, a quoted heading, tilde and longer fences (and check's anchors), a decimal heading, a missing document, a short and a long row, two rows, a missing standard and packs folder, a root that is no folder, a settings file's style; 69 passed.
  • 2026-12-03 -- Removed: ShotStore.detect_and_define, ShotSequencer.expand_shot and ShotSequencer.set_shot_duration, which nothing called (core_utils/engines/shots/shot_model.py, shot_sequencer.py; MOVED_NAMES rows name each one's replacement). Each was a narrower copy of a call the panels use. detect_and_define defined each region detect_regions found that overlapped no shot; the Shot Sequencer's Detect names a found cluster with default_name and defines it with define_shot. expand_shot grew a shot's end without its keys, as resize_shot_bounds(shot_id, start, new_end) does with its pending bounds and content clamp. set_shot_duration retimed a shot's tail, as resize_shot(shot_id, start, start + duration) does, but without the seam pin resize_shot gained for a flush neighbor's keyless curve.

    • Test(s): the removed methods' own tests went; the ones that proved shared behavior through them now call resize_shot or resize_shot_bounds, or define detected regions as Detect does (tests/test_shot_sequencer.py, tests/test_shots_core.py). pythontk's 18 affected suites (1,910 tests) pass; downstream, mayatk's 32 affected suites (3,338 tests), blendertk's 19 (2,203 checks) and tentacle's 25 (259 tests headless, 1,488 in Maya) pass.
  • 2026-12-03 -- Fixed: images loaded on several threads at once keep each load's pixel cap and leave the process's own as it was (img_utils/_img_utils.py ImgUtils.ensure_image, allow_large_images; new _pixel_guard_lifted). Pillow's MAX_IMAGE_PIXELS is one process-wide value, and the map builders (MapOptimizer's batch, MapFactory) load images on a thread pool. Each load saved the value, raised it to its own cap and put back what it saved. A load that started inside another's saved the raised value, so when the first finished first, the second opened under the restored cap: a map over twice Pillow's default (179 megapixels; a 16K map is 268) was refused as a decompression bomb, though its own cap allowed it. The second then put back the raised cap for good. The loads holding the guard are now kept under a lock: it sits at twice the loosest cap any of them asked for (lifted only inside allow_large_images), and the value the first found comes back when the last leaves. Each load checks its own cap as Pillow checks its global one, refusing an image over twice the cap. The per-load warning filters went too: they raced the same way, and below twice its cap Pillow warns of nothing. Any other Image.open in the process meanwhile, a load asking for Pillow's own guard (max_pixels 0 or None) included, is refused over four times the loosest cap and warned over twice it; before, it ran under the raised cap itself. A negative max_pixels is Pillow's own guard, as before.

    • Test(s): tests/test_img.py new PixelLimitAcrossThreadsTest (4; red first: the second load refused, and the process's cap of 100 left at 1000; then, against the first version of this fix, the guard None while a load held it, and a cap of -1 refusing every image), the overlap forced by holding each thread inside Image.open in turn; test_img 415 tests after the second fix. Downstream, the suites that reach the module pass: pythontk's 21 (2,144 tests, 2 skipped), mayatk's 12 (1,608), blendertk's three (919 checks), tentacle's two panels in Maya (149), extapps' five (205), and the Unity samples' (50 tests, the sync check, 33 C# model tests, 8 end-to-end twins in a batch editor).
  • 2026-12-03 -- Fixed: an image of any mode saves to any container, and an alpha a write drops is said when it holds data (img_utils/_img_utils.py: _CONTAINER_MODE_FALLBACKS, save_image, channels_carrying_data, new channel_loss_warning; core_utils/engines/textures/map_optimizer.py MapOptimizer.channel_loss_warning). A palette image with alpha (PA), a 32-bit integer or float image (a float map built with numpy is mode F), or a CMYK or YCbCr one raised OSError or ValueError on a PNG, JPEG, BMP, TGA or GIF write, because the container table had no row for them. Each now has a row, measured against Pillow's writers as the others are. PNG stores a 32-bit integer image as 16-bit, which is what Pillow's writer did, before Pillow 13 removes that support. save_image dropped an alpha the container cannot hold (JPEG, BMP, Radiance HDR) without a word. It now says so when the alpha holds data, in the words the optimizer already used, which now live in ImgUtils.channel_loss_warning. An alpha counts as data unless it is opaque throughout. Before, only an alpha that varied counted, so a packed map's constant smoothness of 0.5 was dropped without a word; this also reaches the optimizer's warnings and the map processor's.

    • Test(s): tests/test_img.py new test_every_mode_saves_to_every_pillow_container (84 subtests; the 20 refusals it covers measured first by a probe of every mode on every container), test_an_alpha_a_container_drops_is_said_unless_opaque (red first) and test_a_constant_alpha_short_of_opaque_is_data; test_table_matches_what_pillow_actually_writes measures the new rows. Run: test_img, test_map_factory, test_color and test_map_optimizer, 733 passed; the 26 pythontk modules the change reaches, 2,644 tests (2 skipped); downstream: mayatk's 12 (1,606 tests, in an owned Maya), blendertk's 3 (919 checks), extapps' texture panels (205), tentacle's in Maya (149), and the Unity samples check.
  • 2026-12-03 -- Fixed: a .tif file is found (img_utils/_img_utils.py: recognized, readable, texture_file_types; new _FORMAT_ALIASES). The format table spelled TIFF tiff alone, so every scan and file dialog built from it (*.tiff) missed the .tif most tools write: a texture set's map saved as .tif was never found (MapFactory's gap-fill, MapCompositor, the texture panels' file dialogs). tif is now an alias of tiff, at the end of recognized and readable. It stays out of writable, because output combos persist their choice by index.

    • Test(s): tests/test_map_factory.py new test_supplement_finds_a_tif_sibling, tests/test_img.py test_derived_sets_match_table, red first; the runs as above.
  • 2026-12-03 -- Fixed: are_identical, srgb_to_linear and set_bit_depth answer for any image, by its type rather than its values (img_utils/_img_utils.py, img_utils/_color_space.py). are_identical compared only the region two sizes share, so a black 50x50 matched a black 100x100, and it raised ValueError for images of two modes or of a 16-bit or float mode. It is now False for a different size or mode, compares every pixel (a palette image by the colors it shows) and takes any mode. srgb_to_linear guessed an array's scale from its brightest value, so an 8-bit map whose brightest value is 1 read as white, and a float one that overshoots 1 (a resample's ringing) read as 0-255 data and came out near black. It now reads the scale from the type: uint16 at 65535, any other integer at 255, floats as 0-1. An integer alpha is scaled with the color, where it was left at 0-255. set_bit_depth read LA and PA as one 16-bit band and converted them to I;16, which dropped the alpha and left an 8-bit value near black, and it clipped a float map (0.5 to black). LA now stays as it is, PA becomes RGBA, and a float or 32-bit map is scaled (convert_mode).

    • Test(s): tests/test_img.py new test_srgb_to_linear_reads_the_scale_by_type_not_by_value and test_set_bit_depth_keeps_alpha_and_scales_high_bit_values, and test_are_identical_different_sizes / _different_modes now asserting False, each red first; new test_are_identical_compares_high_bit_maps (the ValueError measured first by a probe). The runs as above.
  • 2026-12-03 -- Changed: a hand-off carries a material's values, at manifest version 4 (core_utils/engines/scene_export/material_record.py: new MaterialFamilies.VALUE_CHANNELS, gltf_props; material_walk.py: a shader row's values, new MaterialWalk.inputs; material_reading.py: MaterialReading.entry(images=); core_utils/handoff/manifest.py; file_utils/mesh_convert/_gltf2fbx.py). An entry stated a material's maps and nothing its shader held beside them, so a metal value, a roughness or any lobe with no map stayed behind (FBX's own material holds a color and little else), and a material with no image had no entry at all. VALUE_CHANNELS["pbr"] names the fifteen values a reading's props carry (the family's own names, OpenPBR's for the specular and coat lobes), each by the channel whose map stands in for it. A shader's row of a host's node table lists the attributes that hold them (values, with a scale where the host keeps another unit): the walk states them, less each whose channel a stated map drives or whose input a node feeds, and MaterialWalk.inputs(row, props) gives the same row's attributes back with their numbers, so a value an engine sets reads back as the number it was given; a receiver sets each on its input but one a node feeds, which is the whole rule, since a reading states no value under its own map. MaterialReading.entry(images=) says, in unread, the images of a material whose entry states none of them (each sender wrote that line itself). The emission weight is what the emission color is multiplied by (1 shows it as it is); OpenPBR's luminance, in nits, is a host's row to scale. HandoffManifest.VERSION is 4. The glTF converter writes an entry for every material of its file (it wrote one for a textured material alone), its values read by MaterialFamilies.gltf_props, the inverse of the family's own statement of a material, beside it: the core factors at glTF's own defaults, KHR_materials_emissive_strength, the alpha where the material blends; a gray factor over its texture is the base or the emission weight (an emissive texture under glTF's default black factor has a weight of 0, as glTF shows it), and a factor with no value to be (a tint, a metal or roughness factor other than 1, an alpha factor) is said in unread; an image it cannot decode is said there too, with that channel's color or number left out; the lobe extensions are not read. Its FBX material's own color is white where the file names none, as the entry says (it was 0.8).

    • Test(s): tests/test_material_walk.py, tests/test_material_record.py (new TestGltfProps), tests/test_material_reading.py (new: images an entry states none of are said once), tests/test_handoff_manifest.py, tests/test_gltf2fbx.py (new: an entry of values alone, an opacity only where the material blends, a factor over its texture as its weight or said, an undecodable image said, the carrier's color agreeing with its entry), each new case red first: 298 passed, 82 subtests. Everything the change reaches in the package: 2,173 tests across 28 modules, 2,163 passed and 10 skipped, 0 failed. Downstream: mayatk's and blendertk's entries of the same day, and the hand-off there and back (m3trik tests/material_corpus: 10 passed, 1 expected failure).
  • 2026-12-03 -- Fixed: a failure the shot store goes on past is said, never passed over (core_utils/engines/shots/shot_model.py ShotStore). A backend whose scene callbacks could not be removed (clear_active, a host library registered again), a preferences file that could not be written (save_user_prefs) and an export view that could not be published after a save (auto_publish_export) were each passed over without a word, and a callback left behind can write the old store's shots into the next scene. Each is now a warning, and the store goes on as before. An unreadable preferences file is read through UserConfig.load_file, which says so, instead of by a second reader beside it that said nothing. An export hook a host cannot register is logged at debug level: the hook is optional.

    • Test(s): tests/test_shots_core.py new test_an_unreadable_prefs_file_is_said_and_changes_nothing, test_a_prefs_save_that_fails_is_said and TestAFailureAStoreOutlivesIsSaid (2), each red first; the 13 pythontk modules the change reaches, 1,432 passed; downstream: mayatk's 31 (2,891 tests, 35 skipped, the GUI pass included), blendertk's 16 (2,079 checks), tentacle 228 passed headless and 913 passed in Maya (50 skipped).
  • 2026-12-03 -- Changed: a hand-off manifest's material entry is a reading and what binds it, at manifest version 3 (core_utils/engines/scene_export/material_reading.py: new MaterialReading.entry, from_entry, placement; core_utils/engines/textures/map_registry.py: new MapRegistry.channel_reads, CHANNEL_ALTERNATES; core_utils/handoff/manifest.py: HandoffManifest.VERSION 3, new OLDEST, refused; file_utils/mesh_convert/_gltf2fbx.py). An entry named a channel only where its older shape could say one, so a map read from one component of a packed image, or inverted, crossed by its file and was placed only if its name said what it was. entry writes each map by its channel with the file it reads, the output read and a rescale (an inversion is scale -1, bias 1), the material's other images in files, and what the walk could not follow in unread; from_entry reads that shape and the one before it, which a receiver reads for one more release. placement(entry, built=None) says how a receiver's engine takes an entry: stated, the maps built from their paths (wherever built(stated) says the receiving shader builds that read with nodes, and every map whose file's name does not say its read); named, the files that go to the engine by name (the name says the same read, and the shader does not build one of its maps or the name tells a component the stated read hides); left, a file named for a channel a stated map drives, which never takes its place. channel_reads(map_type) is what a map type's name says of a file: each channel it drives, and the read. A manifest of a version outside OLDEST to VERSION reads as its number alone, refused the sentence that names both. MeshConvert.gltf_to_fbx writes the entry (family pbr): a metallic-roughness image is roughness by g and metal by b, a base color's alpha the opacity where the material blends or cuts out. The walk leaves out, unsaid, an input its table lists with no channel (one a host feeds for itself). MaterialReading.slots, never released, is gone.

    • Test(s): tests/test_material_reading.py (new TestTheEntry, TestTheOlderEntry, TestPlacement), tests/test_handoff_manifest.py (new TestVersions), tests/test_map_registry_short_alias_boundary.py (new ChannelReadsTest), tests/test_gltf2fbx.py, tests/test_material_walk.py, each new case red first: 234 passed, 97 subtests; the 39 modules the change reaches, 2,728 tests, 0 failed (10 skipped). In owned headless Blender and Maya the converter's payload is read by both receivers map for map (m3trik tests/material_corpus/test_there_and_back.py).
  • 2026-12-03 -- Fixed: a slide is one content batch (core_utils/engines/shots/shot_sequencer.py: _slide, set_shot_start). A slide (move_shot, a gap handle's drag, the head of an Add Space) moved its ripple and its pivot outside any batch, so Maya re-rendered its derived audio once per step, while set_shot_start batched the same moves in a copy of its own. Both now run _slide, which batches them; set_shot_start keeps only its clamp, the closing rule and its reconcile.

    • Test(s): tests/test_shot_sequencer.py test_scene_edits_are_batched now slides too, red first against the committed _slide (no batch opened); the five pythontk shot suites (1,063 passed), mayatk's sequencer and manifest suites (723, headless and the GUI pass), blendertk's (414) and tentacle's sequencer and shots panel suites offscreen (235 passed, 298 Maya-gated skipped).
  • 2026-12-03 -- Fixed: an unknown scope, mode or edge is refused, and apply_gap says whether anything moved (core_utils/engines/shots/shot_sequencer.py: apply_gap, fit_shot_to_content, add_shot_space; new _check_choice). An option outside its values fell through to another behavior without a word: apply_gap(scope="both") moved nothing and returned False as if there were nothing to do, an add_shot_space edge of "head" padded nothing, and fit_shot_to_content read an unknown mode as a fit and an unknown edge as both. Each now raises a ValueError naming the values it takes. apply_gap returned True whenever its scope ran, even with the shots already that far apart; it now reads the answer from the bounds. The panel offers only the named values and does not read the answer, so it is unchanged.

    • Test(s): tests/test_shot_sequencer.py new test_apply_gap_says_false_when_nothing_moved and test_an_unknown_option_is_refused, red first; the same runs as above.
  • 2026-12-03 -- Fixed: a merge with a repeated id no longer deletes its shots, and neither a merge nor a split leaves two shots on the same frames (core_utils/engines/shots/shot_sequencer.py: merge_shots, split_shot, _split_at). merge_shots folded in each repeat of an id as another shot, so the keeper removed itself: [A, A] deleted A and returned None, and [A, A, B] deleted both. A repeated id is now one shot, as an unknown one is ignored. A merge of shots with another shot between them grew the keeper over it. It is now refused with a ValueError naming the shot between. A split with a negative gap rippled the tail back over the head (B [15, 22] beside B2 [18, 26]). It is now refused before anything is cut, in _split_at, so blendertk's own split_shot shares the check. The panel merges neighbors and splits with no gap, so it never reached these.

    • Test(s): tests/test_shot_sequencer.py new test_a_repeated_id_is_one_shot, test_a_merge_over_a_shot_left_out_is_refused, test_a_negative_split_gap_is_refused, each red first; the five pythontk shot suites (1,061 passed), mayatk's sequencer and manifest suites (723, headless and the GUI pass), blendertk's (414) and tentacle's sequencer panel suites offscreen (140 passed, 275 Maya-gated skipped).
  • 2026-12-03 -- Fixed: removing a shot's trailing room stops at its last key, the head room counts a hold's keys, and removing head room leaves the keyed gap before the shot (core_utils/engines/shots/shot_sequencer.py: add_shot_space, _retime_closed_gap; new _content_bounds, _empty_room). A negative trailing pad moved the end with no clamp: B [15, 30] with keys to 25, asked for 10 frames back, ended at 20 with its keys still running to 25, and the next shot was pulled back onto them. The tail now gives up only the room after the last key, read as Trim Trailing Space reads content (the sequences the shot plays and every key it holds), and both pads share that reading through _content_bounds, which content_end now uses too. The head room read the motion alone, so a held key before the motion counted as room and was dragged out through the start. A head removal slides the shot back and then puts its start back, and the slide read that as closing the gap before it: when that gap held keys (the previous shot's fade tail), they were retimed into one frame, and the gap was its old width again once the start went back. The removal now declares its start (pending_bounds), and a slide whose start an edit declares elsewhere retimes no gap. An empty shot's tail removal still shrinks it, as before. A head removal is still cut to the gap before the shot; that is logged in the backlog.

    • Test(s): tests/test_shot_sequencer.py new TestRemovingRoomStopsAtTheContent (6; 4 red first), test_removing_tail_room_of_an_empty_shot_shrinks_it, and an expected failure pinning the open head-room cut; the five pythontk shot suites (1,061 passed), blendertk's test_shot_sequencer, hooks and test_shot_manifest (414), mayatk's sequencer and manifest suites (723, headless and the GUI pass), and tentacle's sequencer panel suites offscreen (140 passed, 275 Maya-gated skipped).
  • 2026-12-02 -- Fixed: a retime keeps at least a frame (core_utils/engines/shots/shot_sequencer.py: set_shot_edge, resize_shot, set_shot_duration, resize_object). A Shift drag of a gap's left edge past the shot's start, which the overlay does not stop there, clamped the shot to zero duration and retimed every key onto one frame, so each curve kept only one of them (A [1, 10] was stored [1, 1] and retimed [1, 10] -> [1, 1]). A retime now stops one frame from the opposite edge, as an editor's clip stops at its least length (_floored_span): the edge that moved further gives way, and a shot already under a frame is never grown by it. A bound-only edit still stops at zero duration, since it moves no key. resize_object swaps an inverted range as resize_shot does, since a reversed span played the keys backwards, and set_shot_duration ripples by what the end actually moved.

    • Test(s): tests/test_shot_sequencer.py new TestARetimeKeepsAFrame (10; 8 red first, 2 guards); the five pythontk shot suites (1,051 passed), mayatk's test_sequencer, test_shot_sequencer_hooks and test_sequencer_audio_shift (623, headless), blendertk's test_shot_sequencer and hooks (339), and tentacle's sequencer panel suites offscreen (140 passed; the 275 Maya-gated ones skip there).
  • 2026-12-02 -- Changed: the walk reads a host whose plugs have a child per component, and states the normal map under a bump (core_utils/engines/scene_export/material_walk.py: MaterialWalk.graph, new MaterialWalk.asks; material_graph.py: MaterialGraphLink.output_of, input_of; material_corpus.py: new case bump_over_a_normal_map). A Maya network could not be drawn in the walk's form: a file node gives each component a plug of its own, a scalar input is fed by one of them, one reverse inverts three lanes, and one node type is a normal map or a bump by a setting. So a link end may say it is one component of a plug (output_of, input_of: [plug, 0 to 2]), read by that plug's own name where the table names it and as a lane of its node otherwise (one node inverting two maps, a component each); a row's kind, or a name's answer, may follow what the node holds ({"by", "when", "else"}; when was kinds, unreleased), asks(table) listing the settings a host must then capture; an end may carry the inverse ({"name", "invert": True}: a transparency for an opacity); and a shader row's plain names the component its host reads a plain map by, so a scalar read from an image's red there is stated as the whole image and one material reads the same in every host. A normal map reads its image whole, whichever output feeds it. A channel read from more than one image, or from one in more than one way, states no map and says so.

    • A bump over a normal map (a height map detailing a baked normal) read as the bump alone, the normal map lost and unsaid: it is two maps, the bump and the normal it perturbs. Two bumps layered state no bump, and say so.
    • Test(s): tests/test_material_walk.py (65; the component, lane, plain and bump cases red first), tests/test_material_graph.py, tests/test_material_corpus.py: 101 passed, 80 subtests; the five material modules, 187 passed. Every corpus case is the walk's own test with no host running; in headless Blender and Maya every reader reads the new case (m3trik tests/material_corpus).
  • 2026-12-02 -- Added: AgentInstructions.init, a codebase with no packs starts its instruction tree from a shipped starter set (core_utils/agent_instructions/: the module is now a package, _agent_instructions.py beside starter/; operation instructions.init). sync needed a source folder of packs, so a new codebase had nothing to begin from. init(root, packs=None, mode="hook") vendors the starter set's packs (AgentInstructions.STARTER: principles that cite no standard and name no product) and does all sync does: AGENTS.md with its pointer block, the CLAUDE.md stub, the pack hook or a workspace root's imports. The copies are the codebase's own from then on; one that already takes packs is left as it is, so a second run changes nothing; a name the set lacks is refused with the names it holds, and a file already in a pack's place (a rule the codebase wrote) is never overwritten. The set is generated from the publishing workspace's packs and checked there, never edited here. ptk.AgentInstructions resolves as before; its defining module moved within the package (tests/surface_snapshot.json).

    • Test(s): tests/test_agent_instructions.py new TestInit (9, red first); with tests/test_operations.py, tests/test_surface_snapshot.py and tests/test_packaging_metadata.py: 169 passed, 1 skipped.
  • 2026-12-02 -- Added: AgentInstructions.coverage, AgentInstructions.section and duplicates(containment=) (core_utils/agent_instructions/_agent_instructions.py; operations instructions.coverage, instructions.section). A rule set said nothing about what holds each rule, and a rule's cited rationale could only be read by loading the whole standard. coverage(standard, source) reads a Pack | Rule | Held by table in a standard against the packs' rules (a rule is the bold lead of a pack bullet; a * row answers for the rest of its pack) and reports each rule as held, partly held or left to review, with a problem for a rule no row answers for, a row for a rule no pack states and a row naming a check that is not on disk. section(standard, number) returns one numbered section's text. duplicates(containment=...) also pairs a short rule restated inside a longer one, which whole-text similarity cannot see.

    • Test(s): tests/test_agent_instructions.py new TestCoverage (8), TestSection (3) and three containment tests; with tests/test_operations.py: 145 passed, 1 skipped.
  • 2026-12-02 -- Fixed: a 16-bit or float map keeps its values in an 8-bit or float container, a resize keeps the color under data alpha, and a packed map is written in its path's format (img_utils/_img_utils.py, img_utils/_codecs.py, img_utils/_channels.py). enforce_mode and save_image's container fallbacks (JPEG, BMP, WebP, TGA) converted through Pillow, which clips a 16-bit map at 255: a height map came out white. Both now go through convert_mode, which scales. EXR and HDR divided every integer map by 255, so a 16-bit map's white was 257, and half floats dropped a 16-bit source's low bits. Integer data is now normalized at its full scale (_full_scale, shared with convert_i_to_l), float data is written as it is, and FP32 is kept for anything above 8 bits. EXR and HDR now have rows in _CONTAINER_MODE_FALLBACKS, measured against OpenCV: EXR keeps one to four bands as given, and Radiance HDR stores RGB alone, so an RGBA or LA map no longer fails to write. Pillow premultiplies RGBA and LA on every non-nearest resample, so a texel whose alpha is data (a packed smoothness, a mask) came back with its color scaled by it, and one of alpha 0 came back black. resize_image, ensure_pot and generate_mipmaps now resample each band on its own (_resize_straight). pack_channels and extract_channels passed their default output_format="PNG" to Pillow as format=, so a .tga held PNG bytes and the Map Packer's "JPG" raised KeyError. The path's extension now picks the container, and output_format names the extension for a path that has none. An absent channel in extract_channels is a named warning instead of a silent skip.

    • Test(s): tests/test_img.py new HighBitMapsKeepTheirValuesTest (4), ResizeKeepsDataInAlphaTest (3), PackedChannelsKeepTheirContainerTest (3), each red first; test_table_matches_what_pillow_actually_writes measures the OpenCV containers with OpenCV. 408 passed in test_img. Downstream: mayatk's 13 image-reading suites (1,638 tests) and blendertk's four (1,035 checks) pass, as do pythontk's preview suites (404 passed, 1 skipped).
  • 2026-12-02 -- Fixed: undoing a shot edit puts its takes back where they were, and a shot store or key stash a scene change left behind writes nothing (core_utils/engines/shots/shot_model.py ShotStore; core_utils/engines/key_stash/key_stash_model.py KeyStash). A restore point shared each shot's take records with the live shot, and the restore went through update_shot, which rebased them by the very move being undone: an undone move shifted every take. Restore points now copy the metadata whole, and a restore puts each field back as recorded. A store or stash with nothing in it skipped a frame-rate change, so the first shots made after one were typed at the old rate and every reopen stretched them; an empty one now takes the new rate and writes nothing (the Maya and Blender adapters now pass it the change). A store another took the place of as the active one (a scene opened, set_active) still wrote when its queued flush ran (Maya flushes on idle), over the next scene's record; it writes nothing now. Also: an edit whose undo step the host could not open leaves no restore point behind; a listener that unsubscribes as it reacts no longer costs the next one the event; remove_object_from_shots is a member edit like any other (listeners hear it, a system tag on the member goes, and the name leaves every object set, its lock included, where pins and hides alone were cleared; it writes when its batch ends, so a caller removing several names batches them); a member the shot system added keeps its tag through a rename; member_key is NodeNames.leaf.

    • Test(s): tests/test_shots_core.py new TestRestorePointsHoldTheirTakes (2), TestAnEmptyStoreTakesTheScenesRate (2), TestAReplacedStoreWritesNothing (2), TestListenersThatUnsubscribe (2), TestAnEditWhoseStepNeverOpened, TestRemovingAnObjectFromShots, TestARenamedSystemMemberKeepsItsTag, and three in tests/test_key_stash_core.py, each red first: 445 passed in the two modules, 1,406 across the pythontk modules the change reaches; mayatk's 25 affected suites 2,480 passed, headless and in the GUI pass.
  • 2026-12-02 -- Changed: a delivery packs roughness, metal and occlusion as the reading states each is read (core_utils/engines/scene_export/material_record.py: MaterialFamilies.statement, read_of, PACKED_FIELDS, pack_metallic_roughness(reads=), packed_name(reads=); material_reading.py: MaterialReading.slots). A statement left out any map glTF cannot hold as the graph has it, which would leave out every scalar map read from one component, or inverted, once a reader states paths. A statement now carries those three roles however the graph reads them, with the read beside each (reads: the component, a scale and a bias), and the pack reads each as stated: a gloss map packs inverted, a mask's alpha packs as the metal it drives. A read is part of what a pack is (its stamp, and its name where a record holds two packs of one image). One image read in glTF's own layout is still bound as it is; an occlusion map on its own is bound only when read whole or from red, else left out and said; a color role read from one component, scaled or biased is left out and said, as before. A tiled image is stated by one tile (its first on disk), and that is said: glTF holds one image per map. MaterialReading.slots(reading) is a reading as a hand-off entry of the older shape states it: a channel for each map read whole, from red, or from alpha on opacity; any other map crosses by its file alone. A statement of whole images, and its record, is what it was.

    • Test(s): tests/test_material_reading.py (30, 21 subtests; the statements and the record still byte for byte against tests/fixtures/material_statements.json) and tests/test_material_record.py TestPackingAStatedRead (9; 56 in the file), the first batch red first and a second written with its code.
  • 2026-12-02 -- Added: MaterialGraph, a material's node graph as one document for every host (core_utils/engines/scene_export/material_graph.py). The two hosts' graph stores (Shader Templates) saved two forms, one by plug name and one by socket position, neither versioned, and a round trip of a realistic material lost a ramp's stops, curve points, a constant node's value, a group's contents, an image's color space or tiles, and collapsed two images of one map type into one file. This is the one form both write: a versioned, typed document of the material's settings, each node in its host's own words (its values and settings by name, a ramp or a curve as plain lists, a group as a document of its own, an image with its map type, color space, tiles and file), and links by named output and input. problems says what is wrong with one; diff says what a rebuilt graph lost; rebind gives each image its fresh file by map type, two images of one type taking two files in order; the tiles of one tile set are one file, the first given, so a tiled image takes the set and a second image of its type the next set.

    • Test(s): new tests/test_material_graph.py (18, 14 subtests): the shape, each loss the audit measured seen by diff, the rebinding rule and its tile sets.
  • 2026-12-02 -- Added: MaterialWalk, a material's graph read into a reading, once, with no host (core_utils/engines/scene_export/material_walk.py). A host dumps a material as plain data (nodes of abstract kinds, links by named output and input: the form MaterialCorpus already draws its cases in, now declared here) and MaterialWalk.read goes from each input of the shader back to the image that drives it, stating how it reaches the channel in UsdUVTexture's terms: the output read through a channel split or an image's alpha, and a scale and bias (an invert is -1 and 1; two cancel). A bump's height map is the bump channel, never the normal (and only the normal has one); a pass (a reroute, a color correction) hands its image on; a mix one image feeds is that image's map, while a mix of two images, a mix whose amount a node drives, a node of no known kind or an input nothing feeds is listed as unread and states no map. MaterialWalk.graph(document, table, shader=None) draws that form from a host's capture (a MaterialGraph document that kept its files) by the host's table of its own node types (a kind may follow what the node holds; a group is opened), and images(graph) names the image node behind each channel. blendertk's readers and the pull scripts that read Blender's graphs call it.

    • Test(s): new tests/test_material_walk.py (41, 47 subtests): every corpus case read as the corpus says, with no host running; the path rules (a pass, a tinted mix, a mix a node drives, a bump off the normal); a capture drawn by a table, its groups opened; the image node behind each channel; its reading through MaterialFamilies.statement (a bump is no normal map of a delivery).
  • 2026-12-02 -- Added: MaterialCorpus, the shading-graph cases every reader of a shading network is held to (core_utils/engines/scene_export/material_corpus.py). Fifteen cases as host-free data, each a small graph of abstract nodes (an image, a channel split, an invert, a normal map, a bump, a mix, a group, the shader) with the maps a correct reading holds for it: a packed image read by channel, an inverted gloss map, a bump, two images mixed, an image tinted by a mix, an image behind a pass, one image on two channels, a lobe, a tiled image, an image in a node group, an image stored in the scene file. A host supplies only a builder; verdict is the one rule that judges what a reader stated (its channels and files, and for a reading's maps each map's path too), and write_images writes a case's images. Several readers exist across the packages and have drifted before (a channel split one followed and another did not): what a reader must find is now stated once.

    • Test(s): new tests/test_material_corpus.py (17, 15 subtests): the corpus's own consistency, each expectation a valid MaterialReading, the rule's five outcomes, a reading's maps held to their paths. Every reader of both hosts run over it by the workspace's suite (m3trik tests/material_corpus).
  • 2026-12-02 -- Added: MaterialReading, a material as its reader states it, the declared shape a statement is built from (core_utils/engines/scene_export/material_reading.py; MaterialFamilies.statement, gltf_holds). What MaterialFamilies.entry took as loose arguments is now one typed shape: the material's name, its family, its values, and each image by the logical channel it drives (a channel of MapRegistry, lobes included) with how it reaches it in UsdUVTexture's terms (the output read, a scale and bias), plus what binds a reading to a scene. MaterialFamilies.statement(reading) reduces one to glTF's model and entry now calls it; a map glTF cannot hold as the graph has it (inverted, or read from another component) is left out and said. No statement or record changes. Phase 1 of the hand-off materials design: one description of a material for a delivery and a hand-off alike.

    • Test(s): new tests/test_material_reading.py (19, 21 subtests; red first): the statements and the record byte for byte against tests/fixtures/material_statements.json, taken from all four families before the change. The Unity samples re-exported and unchanged (m3trik/scripts/sync_unity_samples.py --check: 8 in sync), a check a planted fault in the new path turned red.
  • 2026-12-02 -- Added: MeshConvert.usd_to_glb, a USD stage as a GLB with no DCC, and gltf_to_fbx(records=True), that GLB as the FBX an engine importer of the scene records reads (file_utils/mesh_convert/_usd2glb.py, _gltf2fbx.py; MaterialFamilies.from_gltf; GlbEdit.new; UsdMaterials.read(resolve=True)). The USD master had no way out but a DCC. usd_to_glb writes what the stage composes as glTF states it: meters and +Y up (units and up axis conformed on the root nodes), polygons as triangles in USD's winding, each materialBind subset a primitive, UVs flipped to glTF's origin, an instance's mesh written once, a transform holding one unmoved mesh as that mesh's node, each LOD variant set a MSFT_lod group (a level drawing no fewer triangles than the one before it left out, merge_glb_lods' rule), and the materials UsdMaterials.read reads back with their maps embedded, a .usdz's read out of the package; static (time samples, skeletons, point instancers, cameras and lights are said, not carried). gltf_to_fbx(records=True) states the glTF's materials as the materials record on a root data_export carrier and embeds its maps under their own names. MaterialFamilies.from_gltf is the rule both lean on: glTF leaves a default unsaid, the record states every value its readers require. Weighed and not adopted: usd2gltf (MIT; skips instance proxies, reads no units or up axis, no LODs, a wrong texture transform), and a headless DCC import (a host to run, the materials translated twice).

    • Test(s): new tests/test_usd2glb.py (22: a hand-built stage, the engine door, a CAD import's layered asset, a package's maps, a hidden mesh, a level that does not fall, an instanced mesh read once; the Khronos validator 0 errors, 0 warnings), tests/test_material_record.py TestFromGltf (4), each red first. End to end in Unity: the new twin MayaUsdMaterials (m3trik tests/unity_e2e) delivers the Materials sample through Maya's USD, both converters and unitytk's importer; every MaterialsSampleTests test passes on it (red first: the record failed its declared shape, missing required 'emissiveFactor').
  • 2026-12-02 -- Fixed: the Scene Exporter's USD materials step never fails an export (core_utils/engines/scene_export/scene_exporter.py SceneExporterBase._state_usd_materials, now (written, uv_sets, read_inputs)). The deliverable has shipped by then, but reading the host's statements, finding the maps and copying them ran outside the step's guard: a read-only map already in textures/ (a checked-out texture) raised PermissionError and failed the run. Now the whole step is guarded; the host passes read_inputs, called inside it; each map is copied on its own (shutil.copyfile, no permission bits), a copy that fails keeps the one already there and says so, and a map that is neither copied nor there is named as the record names it.

    • Test(s): tests/test_scene_exporter.py new test_a_map_that_cannot_be_copied_keeps_the_copy_beside_and_the_write_goes_on (red before: PermissionError), test_inputs_that_cannot_be_read_are_no_failed_export.
  • 2026-12-02 -- Fixed: UsdMaterials reads the layer a host wrote, keeps what it does not replace, and reads what USD's own examples author (file_utils/usd/materials.py). write reloads a layer this session already holds (a re-export behind pxr's back) instead of saving the stale copy over the file; it replaces only the network the material's universal surface reads, so a MaterialX network (outputs:mtlx:surface) stays. read follows each input to the value or shader that produces it, through a Material's interface inputs (USD's shading tutorial and Omniverse author that way), reads a texture naming no file, or a source that is no shader, as no texture, and reads a layer that is not there as no materials. write and read name the pythontk[usd] extra when no pxr imports, as UsdLayers' own methods now do.

    • Test(s): tests/test_usd_materials.py new test_a_write_reaches_the_file_on_disk_when_this_session_holds_the_layer, test_a_network_another_renderer_reads_is_kept, test_values_on_a_materials_interface_are_read_through, test_an_input_that_reads_no_texture_file_reads_as_no_texture, test_a_layer_that_is_not_there_reads_as_no_materials (each red before); hand-computed V flips test_a_scale_alone_moves_the_origin_by_hand, test_an_offset_alone_runs_the_other_way_in_v_by_hand.
  • 2026-12-02 -- Fixed: UsdLayers.expand_lod_variants expands a .usdz (file_utils/usd/layers.py). Its working copy took the source's format, and no package format can be an anonymous layer, so a packaged export raised; the copies are plain layers now, a packaged one written as a crate file.

    • Test(s): tests/test_usd_layers.py new test_a_package_expands_into_plain_layers (red before).
  • 2026-12-02 -- Changed: a UsdAsset tells same-named siblings apart by what each is, finds a part's own color by its color, states its revision, and refuses a broken tree (file_utils/usd/asset.py). Same-named siblings were keyed by placement alone, so two parts of one name at one place were numbered as one thing twice; the key is now part, own color and placement. A part's own color zone is the one whose MTL color matches it, whatever a backend names it (the CAD import's name only as the fallback). The cad custom data carries the record's revision. A record whose node places a part it does not hold, or whose parents loop or run out, is refused before anything is written (the schema checks neither).

    • Test(s): tests/test_usd_asset.py new test_same_named_siblings_at_one_place_are_told_apart_by_part, test_the_parts_own_zone_is_found_by_its_color_whatever_it_is_named, test_a_node_placing_a_part_the_record_lacks_is_refused, test_parents_that_loop_are_refused, the revision in test_the_records_facts_ride_the_usd (each red before); test_every_face_winds_toward_its_normals, test_each_frame_is_a_rotation_onto_the_assets_up_in_meters.
  • 2026-12-02 -- Changed: products that share a part number are told apart the way STEP and PLM identify a part -- by revision, else by shape -- never by the file's order (file_utils/cad_import/_cad_import.py _part_ids; cad_record.py new optional CadPart.revision). They were <id> and <id>_2 by their order in the file, so a re-export that reordered them swapped the ids a later revision is matched by. Now a revision the CAD system states (a Revision property; OpenCascade's product reading keeps none of its own) tells them apart (HX-100_A, HX-100_B), else the first eight hex digits of each shape's fingerprint; pieces split from one product keep that product's own numbering. The record states the revision; an optional field, so a reader without it reads the record as before.

    • Test(s): tests/test_cad_import.py new test_a_shared_part_number_is_told_apart_by_shape_not_by_file_order, test_a_shared_part_number_is_told_apart_by_its_revision (red before), test_parts_sharing_an_id_are_told_apart_and_named (was ..._numbered_and_named); with the record, USD asset, LOD and mesh modules, 194 passed, 1 skipped by design.
  • 2026-12-02 -- Changed: a UsdAsset states names and parts in USD's own metadata (file_utils/usd/asset.py). Each placement's record name is its displayName (what Omniverse and USD tools show; the prim name is only its USD spelling), and a placed part is kind subcomponent, USD's kind for a meaningful part of a component asset, where both had been custom data. Only what USD has no field for -- part id, part number, fingerprint -- stays custom data cad. Both exist in USD 23.11 (Maya 2025) and 26.5.

    • Test(s): tests/test_usd_asset.py new test_names_and_parts_use_usds_own_metadata (red before); the facts test reads the name from displayName; Omniverse's validator still clean; 93 passed.
  • 2026-12-02 -- Added: UsdAsset.write(up_axis="z") (SimReady's and Isaac's frame) and proof against Omniverse's reference validator; the prototypes holder is a class (file_utils/usd/asset.py, CI). NVIDIA's omniverse-asset-validator (1.18, Apache-2.0, pure Python) failed the asset once: the holder was an over holding no relationship target, where USD's own idiom for prims that exist to be referenced is an abstract class (no traversal draws it). Both validators now run in the tests (CI installs NVIDIA's, and fails without it): 0 failures, and USD's validation framework, 27 validators, 0 errors. Live 2026-12-02: Maya 2025 and Blender 5.1 still import every placement, both LOD levels, the instancing and the zone colors, and no prototype.

    • Test(s): tests/test_usd_asset.py new test_omniverses_asset_validator_finds_no_failure (red before: the dangling over), test_usds_validation_framework_finds_no_error, TestZUp (the product on +Z at the record's placements; an unknown axis refused); 95 passed with the USD and shell modules.
  • 2026-12-02 -- Changed: a UsdAsset's faces are bound to color zones by its geometry layer; its look layer states only the zones' materials (file_utils/usd/asset.py). A finish -- a variant on the interface -- re-states a zone's material and every face of that zone takes it, instanced or not; before, the bindings sat in the look layer per LOD mesh and color subset, where no finish on the interface could reach them (Fable review, 2026-12-02). A zone is one CAD color by default (/<root>/mtl/<cad color>, the names the asset already used); a placement with its own color binds its faces of the part's color to that color's zone in the geometry layer. Not re-imported live since.

    • Test(s): tests/test_usd_asset.py new test_the_look_layer_addresses_no_geometry (red before), test_a_finish_on_the_interface_repaints_a_zone_everywhere; the color, instancing and compliance tests unchanged; 88 passed with the USD and shell modules.
  • 2026-12-02 -- Fixed, from a review: a UsdAsset prim path is a function of the record's identities alone, never of file order (file_utils/usd/asset.py). Tf.MakeValidIdentifier alone made 91274A118 and 81274A118 one name, and clashes were numbered in file order, so reordering a record moved a part's path and its binding. A prim name is now the id itself when it is a valid identifier, else its sanitized form plus eight hex of its SHA-1 (UsdAsset._prim_name); a clash raises instead of renumbering; same-named siblings are told apart by where they stand (six hex of their placement), so reordering, adding or removing one moves no other. Each placement carries the record's facts as custom data cad (its name, part id, part number, fingerprint), and the interface layer the source file and its SHA-256 (customLayerData.cad) and the root its assetInfo.

    • Test(s): tests/test_usd_asset.py new TestIdentity (5; red before: one name for two numeric part numbers, paths moved by a removal, no facts): a reordered record keeps every path, one of four same-named screws removed keeps the other three, the facts ride the USD; the affected modules, 180 passed.
  • 2026-12-02 -- Added: a USD write ships the materials record as its materials (SceneExporterBase._state_usd_materials, both Scene Exporters' USD format), and MaterialFamilies.locate, the one rule a record's file names are found by (FbxMedia.embed_dependencies now calls it). The record the run built is authored over each host-written Material prim of the same name (UsdMaterials.write(only_existing=True): bindings kept, no material defined), each map copied into textures/ beside the layer: a pack the write made, else the file the scene uses (a statement's sources), else where the FBX delivery looks. Live 2026-12-02: a Maya standardSurface with a bump2d normal map and separate metal / roughness maps now ships its normal map (mayaUsd's own conversion drops it) and one packed ORM read through g / b, every map resolving, USD's compliance checker clean; Blender likewise, a map outside every searched folder found through its source.

    • Test(s): tests/test_scene_exporter.py new TestUsdMaterials (written over the host's material, its binding kept, the map copied, the run's record untouched, a material the layer lacks not defined; a write that left no layer, or a layer pxr cannot read, warns and fails no export -- a mocked write in mayatk's suite caught it); tests/test_material_record.py new TestLocate; test_fbx_media unchanged and green; 331 passed in the affected modules. mayatk test_scene_exporter + test_usd 547 passed; blendertk's four, 651 checks passed.
  • 2026-12-02 -- Added: UsdMaterials, glTF materials (the materials record's payload) written as UsdPreviewSurface networks and read back (file_utils/usd/materials.py): USD becomes a third container of the one statement, beside the GLB and the FBX. write(usd_path, document, uv_sets=) authors over a host's Material prim of the same name (its network replaced, its bindings kept) or defines one; read(usd_path) gives the glTF document back. Mapped: base color and factor, packed metal/roughness as one texture read through g/b, normal scale and occlusion strength as a texture's scale and bias, emissive strength, MASK and BLEND, KHR_texture_transform as UsdTransform2d turned to USD's bottom-left UV origin, texCoord to a named UV primvar, wrap modes; what a preview surface cannot state (alphaMode where open, doubleSided, unlit) rides as the Material's custom data gltf. UsdAsset writes its colors through it. Weighed and not adopted: the record as JSON inside the USD (other readers keep the lossy network), Adobe's glTF file-format plugin, usd-exchange's helpers, gltf2usd.

    • Test(s): new tests/test_usd_materials.py (6): every feature reads back as written, the packed network, a host material written over with its binding kept, the UV transform against sample texels, USD's compliance checker (it caught varname as a token, now a string); with the USD modules, 129 passed.
  • 2026-12-02 -- Changed: a layered USD asset imports with every LOD level in both hosts (file_utils/usd/layers.py UsdLayers.expand_lod_variants copies every layer a stage depends on, sets expanded where each is stated, a group nested in another's level too; file_utils/usd/asset.py instances each level, under a group per placement). UsdAsset now holds each tessellation once under prototypes and gives every placement its part as the LOD convention -- a group named for the part over <part>_LOD<n> transforms in a variant set LOD -- each level an instanceable reference: a host's importer keeps that hierarchy, and not a prototype's own (measured 2026-12-02: Blender folded a prototype's levels into loose meshes drawn over one another; Maya renamed a level mesh folded into a shape, Screw_M4_LOD1 for LOD0). The look layer binds a placement's own color inside each level's variant, so no binding outlives its level. Live 2026-12-02 in tooling-owned Maya 2025 and Blender 5.1: each placement's group with both levels, read by LodUtils.groups with no issue, at the record's placements, instancing kept; NIST's 33 models compliance-clean.

    • Test(s): tests/test_usd_layers.py new test_a_set_behind_a_payload_and_a_sublayer_is_expanded_where_it_is_stated (red before: no expansion; the nested set too); tests/test_usd_asset.py new test_an_expanded_copy_brings_every_level_and_keeps_the_instancing (red before), the LOD, instancing and color tests on the new paths; 64 passed.
  • 2026-12-02 -- Fixed, from a self-review: UsdAsset.write's name is made a USD identifier; a name that is one of the asset's own layers (payload, look, geo) is refused rather than written over it; LOD levels are numbered after a faceless mesh is left out, so no name skips a number (file_utils/usd/asset.py).

    • Test(s): tests/test_usd_asset.py new test_a_given_name_is_made_a_usd_identifier, test_a_name_that_is_one_of_the_assets_own_layers_is_refused (red before: an invalid prim; no refusal); the three USD modules, 62 passed.
  • 2026-12-02 -- Added: UsdAsset.write(record), a CAD import's record as one layered USD asset a scene references (file_utils/usd/asset.py, the pythontk[usd] extra or a host's own USD). <name>.usda (the interface: the root prim, kind component, the default prim, a payload) over payload.usda (look over geometry), look.usda (a UsdPreviewSurface per record color, each mesh's and material subset's binding) and geo.usdc (each part once under an over, its profiles as LOD variants finest chord first through UsdLayers.author_lod_variants, every placement an instanceable reference to it); meters and +Y up, the record's GLBs' frame, converted into the points and placements. A placement with a color of its own is not instanced: its color replaces its part's, a face's own color stays. Measured 2026-12-02: NIST's 33 STEP test models (AP203, AP242), every asset clean under USD's compliance checker, crate 0.8.0, 9.2 s of writing in all (0.94 s at most); the fixture's master imported in Maya 2025 (import_scene(conform=True): every placement where the record puts it, in cm, Maya instances) and Blender 5.1 (Z-up meters, collection instances), colors face by face. Both import the selected LOD level alone (BACKLOG 2026-12-02).

    • Test(s): new tests/test_usd_asset.py (14; red before: no module): placements against the record, instancing, frame and size, LOD order, colors per face and per placement, crate, compliance, a refused record version.
  • 2026-12-02 -- Added: UsdLayers, work on written USD layers over the interpreter's own pxr (file_utils/usd/layers.py; the new optional pythontk[usd] extra, Pixar's usd-core, serves a bare interpreter, never a host application, whose own USD serves there): author_lod_variants, expand_lod_variants and skinning_methods, written once here where the two host libraries each carried an identical copy; and UsdFile.crate_version, the crate format version a .usdc is written in. Every pxr import sits in the path that uses it (import pythontk loads none). Measured 2026-12-02: usd-core 26.5 and 26.11 both write crate 0.8.0, what USD 23.11 reads, for meshes, material subsets, instanceable references and variant sets; a test pins it. CI installs the extra, and test_usd_layers fails there without it.

    • Test(s): new tests/test_usd_layers.py (11; red before: no module), tests/test_usd.py new test_crate_version_reads_the_header, test_a_layer_that_is_no_crate_has_no_crate_version (red before: no attribute); with test_module_resolver, test_surface_snapshot (updated: UsdLayers), 105 passed.
  • 2026-12-02 -- Moved: file_utils/usd.py is now the subpackage file_utils/usd/ (its body verbatim in usd/_usd.py), ahead of the pxr module that joins it (CODE_STANDARD section 3: a second cohesive module). ptk.UsdFile, UsdzPackager, UsdMeshWriter and USD_EXTENSIONS are unchanged at the root, which registers them; the package's __init__ is a docstring alone (CODE_STANDARD section 4), and the one in-package importer, core_utils/handoff/app_handoff.py, names usd._usd.

    • Test(s): tests/test_usd.py, test_module_resolver.py (import footprint empty), test_surface_snapshot.py (updated: 15 names' module); 92 passed.

Don't miss a new pythontk release

NewReleases is sending notifications on new releases.