{ "sha": "66eb4c6edc6dd52cd0a5f5d786caedf252ea2a87", "node_id": "C_kwDORFRqZdoAKDY2ZWI0YzZlZGM2ZGQ1MmNkMGE1ZjVkNzg2Y2FlZGYyNTJlYTJhODc", "commit": { "author": { "name": "painter890602", "email": "124643595+princepainter@users.noreply.github.com", "date": "2026-03-12T01:33:59Z" }, "committer": { "name": "GitHub", "email": "noreply@github.com", "date": "2026-03-12T01:33:59Z" }, "message": "Update PainterSamplerLTXV.py", "tree": { "sha": "3af7115f3f56f6dbcca58d5f36e0f8bf68254115", "url": "https://api.github.com/repos/princepainter/ComfyUI-PainterNodes/git/trees/3af7115f3f56f6dbcca58d5f36e0f8bf68254115" }, "url": "https://api.github.com/repos/princepainter/ComfyUI-PainterNodes/git/commits/66eb4c6edc6dd52cd0a5f5d786caedf252ea2a87", "comment_count": 0, "verification": { "verified": true, "reason": "valid", "signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJpshgICRC1aQ7uu5UhlAAAb7UQAKjOC66HsjCig+ZF/Znkp7LO\nJ3oAQleVDqv7im0+X+jbOaJmmnqgs3ZWQWHLNY/LsTz/C5ncCUeRAylsQ/exy42Y\nTNdYG9cN9jaM000RsfZ+v8TrKe2QPMjRnuvk/FK0uTGzYYv6OtsvpLRiooGcvNW8\nuapefDTNAZidN6Vl6xyjrfVWsUDhQq239Tet2XeSBSlBQEPuQc1r0a4IKBwO7iA8\nUdyO6bqJvxCE0JPzbQw5VAEK1VKsRfpAs4bpGbvRQmO3v6dmx6c3Av+eQ7o5uHxJ\ngWwJu2sycNVZAS3HsAKhj8e3hgNuVKYyUNrklLKUrWs4eWN5/5jnhqd6UwAN3VWd\nUJGUQ9qJYM1MTjNGfvCmLpje6lguR9QCTyuEAQnx5U8sn8Ljous8pL/oMPjBlQnn\n80gowDdDdstIgfIqeQmIeC0N4qH2W/wJJSmreCb4WCAxJY5P3dyHwsllamNAbjD2\n1uiZBQmKCnhBns0O2ILdroNShdJF1PSDdjTtrfOOvgun92mC9rBKd+vn6AFvriFj\n+fup0nZMIBpWzxCUQEqV0Ice8WKoSohxc3K5/zcyZA4ZHEntAxa9h73/ZlcZmPWV\nKsIPNEmeLhgeBDs96fysw7wn1AAOna1cN4cktPSqxm7csCbm55tQ2GgUEC+yEW9u\nxoajnASKVRufMhXd12uR\n=f/77\n-----END PGP SIGNATURE-----\n", "payload": "tree 3af7115f3f56f6dbcca58d5f36e0f8bf68254115\nparent 02ef5c0ec5fa0deda4c89c1bdf2400b572fbe59c\nauthor painter890602 <124643595+princepainter@users.noreply.github.com> 1773279239 +0800\ncommitter GitHub 1773279239 +0800\n\nUpdate PainterSamplerLTXV.py", "verified_at": "2026-03-12T01:34:00Z" } }, "url": "https://api.github.com/repos/princepainter/ComfyUI-PainterNodes/commits/66eb4c6edc6dd52cd0a5f5d786caedf252ea2a87", "html_url": "https://github.com/princepainter/ComfyUI-PainterNodes/commit/66eb4c6edc6dd52cd0a5f5d786caedf252ea2a87", "comments_url": "https://api.github.com/repos/princepainter/ComfyUI-PainterNodes/commits/66eb4c6edc6dd52cd0a5f5d786caedf252ea2a87/comments", "author": { "login": "princepainter", "id": 124643595, "node_id": "U_kgDOB23pCw", "avatar_url": "https://avatars.githubusercontent.com/u/124643595?v=4", "gravatar_id": "", "url": "https://api.github.com/users/princepainter", "html_url": "https://github.com/princepainter", "followers_url": "https://api.github.com/users/princepainter/followers", "following_url": "https://api.github.com/users/princepainter/following{/other_user}", "gists_url": "https://api.github.com/users/princepainter/gists{/gist_id}", "starred_url": "https://api.github.com/users/princepainter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/princepainter/subscriptions", "organizations_url": "https://api.github.com/users/princepainter/orgs", "repos_url": "https://api.github.com/users/princepainter/repos", "events_url": "https://api.github.com/users/princepainter/events{/privacy}", "received_events_url": "https://api.github.com/users/princepainter/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "committer": { "login": "web-flow", "id": 19864447, "node_id": "MDQ6VXNlcjE5ODY0NDQ3", "avatar_url": "https://avatars.githubusercontent.com/u/19864447?v=4", "gravatar_id": "", "url": "https://api.github.com/users/web-flow", "html_url": "https://github.com/web-flow", "followers_url": "https://api.github.com/users/web-flow/followers", "following_url": "https://api.github.com/users/web-flow/following{/other_user}", "gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}", "starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/web-flow/subscriptions", "organizations_url": "https://api.github.com/users/web-flow/orgs", "repos_url": "https://api.github.com/users/web-flow/repos", "events_url": "https://api.github.com/users/web-flow/events{/privacy}", "received_events_url": "https://api.github.com/users/web-flow/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "parents": [ { "sha": "02ef5c0ec5fa0deda4c89c1bdf2400b572fbe59c", "url": "https://api.github.com/repos/princepainter/ComfyUI-PainterNodes/commits/02ef5c0ec5fa0deda4c89c1bdf2400b572fbe59c", "html_url": "https://github.com/princepainter/ComfyUI-PainterNodes/commit/02ef5c0ec5fa0deda4c89c1bdf2400b572fbe59c" } ], "stats": { "total": 7, "additions": 5, "deletions": 2 }, "files": [ { "sha": "564ed67a3b0608238a9e6d5103343033069fffda", "filename": "PainterSamplerLTXV.py", "status": "modified", "additions": 5, "deletions": 2, "changes": 7, "blob_url": "https://github.com/princepainter/ComfyUI-PainterNodes/blob/66eb4c6edc6dd52cd0a5f5d786caedf252ea2a87/PainterSamplerLTXV.py", "raw_url": "https://github.com/princepainter/ComfyUI-PainterNodes/raw/66eb4c6edc6dd52cd0a5f5d786caedf252ea2a87/PainterSamplerLTXV.py", "contents_url": "https://api.github.com/repos/princepainter/ComfyUI-PainterNodes/contents/PainterSamplerLTXV.py?ref=66eb4c6edc6dd52cd0a5f5d786caedf252ea2a87", "patch": "@@ -27,7 +27,7 @@ def define_schema(cls):\n io.Combo.Input(\"scheduler\", options=comfy.samplers.KSampler.SCHEDULERS),\n io.Conditioning.Input(\"positive\"),\n io.Conditioning.Input(\"negative\"),\n- io.Latent.Input(\"latent_image\"),\n+ io.Latent.Input(\"latent_image\", optional=True),\n io.Latent.Input(\"video_latent\", optional=True),\n io.Latent.Input(\"audio_latent\", optional=True),\n io.Int.Input(\"start_at_step\", default=0, min=0, max=10000),\n@@ -44,7 +44,7 @@ def define_schema(cls):\n \n @classmethod\n def execute(cls, model, add_noise, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative, \n- latent_image, start_at_step, end_at_step, return_noise, video_latent=None, audio_latent=None, sigmas=None) -> io.NodeOutput:\n+ latent_image=None, start_at_step=0, end_at_step=10000, return_noise=\"disable\", video_latent=None, audio_latent=None, sigmas=None) -> io.NodeOutput:\n \n force_full_denoise = True\n if return_noise == \"enable\":\n@@ -76,6 +76,9 @@ def execute(cls, model, add_noise, noise_seed, steps, cfg, sampler_name, schedul\n audio_mask = torch.ones_like(audio_samples)\n input_latent[\"noise_mask\"] = comfy.nested_tensor.NestedTensor((video_mask, audio_mask))\n \n+ if input_latent is None:\n+ raise ValueError(\"At least one latent input must be provided (latent_image, or both video_latent and audio_latent)\")\n+\n latent_image_tensor = input_latent[\"samples\"]\n latent_image_tensor = comfy.sample.fix_empty_latent_channels(model, latent_image_tensor)\n input_latent[\"samples\"] = latent_image_tensor" } ] }