Use Blenders built-in image sequence editing to fix glitches on AI-generated matte sequences.
Video Tutorial
Transcription
In this tutorial we’ll see some common problems with the gray scale AI matte sequences that Autoshot generates, and how to go about fixing them with Blender’s built-in image sequence painting tools.As you saw previously, for our green screen shots, we primarily use AI mattes as a core matte or for use with a transparent image plane.For compositing, it’s eroded a bit and plugged into the core matte section of the keyer .However, AI mattes can flicker, which then shows up as a flickering key as we see here in frame 786, and going forward in our timeline.
Trying Different AI Matte Tools
Different AI matting tools have different results on a given piece of footage. So your first step would be to try changing the AI Matte tool selection in Autoshot, change from Monet to PPNet, and rerunning the shot. You’ll still probably have a couple of flickers or unwanted areas, however that need some hand retouching.
AI Matte Greyscale PNG Files
So, fortunately, Autoshot generates the AI mattes as a series of gray scale PNG files that are easy to do small paint fixes with inside blender. So as you see there, it’s just a series of PNG files.
Blender Scene Setup
We’ll open up another instance of Blender and we’ll hit A to select everything, X to delete, and then we’re going to do shift A to Add Images as Planes.And then we’re going to browse to the directory where those AI mattes are stored.And we’ll click A to select all of the files and we’ll click Animate Image Sequence to bring that in as an animated image sequence. We’re going to set our material type to emit and then click Import Images as Planes. Okay, great. So Z for material preview.Give it a second. Okay. There’s Josh. Thanks Josh. And then we can scroll along the timeline to see the image animating. Great. That’s our gray scale image.
Blender Texture Paint Tab
Next we’re going to change to our texture paint image tab. And then we’re going to make a horizontal split, and add a, a timeline to the bottom. That’s shift F 12 and zoom out until we can move our timeline over to the area we cared about. That was about frame 780.And then N to open up our side controls and click image.
Setting Sequence Numbers
And we’re going to set frames to the number of frames in the AI matte directory, in this case, 976. Start is one and Offset is 1000, as all of our image sequences start at 1001. All right, so then we can jump to Frame 786. Let’s actually change to our timeline, so then we can jump to frame 786 to see same frame where the flickers start.We’ll bring this a little bit water so we can paint more easily. For filling in AI matte patches, it’s easier to turn off pressure sensitivity, so I’m gonna turn that off here. Now we can work through the image sequence patching the holes.
Painting Out Flickers
We can right click and pick our radius.All right, there’s our radius. Then we can paint that and then hit right arrow to move to the next frame, right arrow and work our way through painting, painting the fixes pretty quickly.All right. You get the idea.
Saving Edits Back to PNG Sequence
And now we’re going to choose Image and Save Sequence to save out the updated PNG files.
Refreshing Mattes in Blender
We’re going to toggle back to the original Blender. When we move back and forth in the timeline, all the flickers are gone. So then you can exit and discard the temporary blend file you made to edit the sequence as the image information is now saved in the PNG sequence. All right. That’s it.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lightcraft Docs","colors":{"primary":"#2F54EB","light":"#597EF7","dark":"#1D39C4"},"logo":{"light":"https://mintcdn.com/lightcraft/ficLiW3XHbOD-r0Z/logo/lightcraft-plane-horizontal-logo-black.png?fit=max\u0026auto=format\u0026n=ficLiW3XHbOD-r0Z\u0026q=85\u0026s=9636a972543c30825f09bda22fb49dd7","dark":"https://mintcdn.com/lightcraft/ficLiW3XHbOD-r0Z/logo/lightcraft-plane-horizontal-logo-white.png?fit=max\u0026auto=format\u0026n=ficLiW3XHbOD-r0Z\u0026q=85\u0026s=c6a92ba15bad23e7153443792a5bec86"},"favicon":"https://mintcdn.com/lightcraft/ficLiW3XHbOD-r0Z/logo/lightcraft-logo-icon-black.png?fit=max\u0026auto=format\u0026n=ficLiW3XHbOD-r0Z\u0026q=85\u0026s=c17bb5dc162ea4bba9e9f637700c1b24","appearance":{"default":"dark"},"background":{"image":{"light":"https://mintcdn.com/lightcraft/ZxidYs9zL3IBiWWI/images/spark/theme/background-light.png?fit=max\u0026auto=format\u0026n=ZxidYs9zL3IBiWWI\u0026q=85\u0026s=b8c4e11b92eee5648769ef6cb6c26b16","dark":"https://mintcdn.com/lightcraft/ZxidYs9zL3IBiWWI/images/spark/theme/background-dark.png?fit=max\u0026auto=format\u0026n=ZxidYs9zL3IBiWWI\u0026q=85\u0026s=c6c82b9f7ff3696f6fe77b270f885fa8"},"color":{"light":"#F0F5FF","dark":"#0C1013"}},"navbar":{"links":[{"href":"mailto:support@lightcraft.pro","label":"Email Support"}],"primary":{"type":"button","label":"Lightcraft Forums","href":"https://forums.lightcraft.pro"}},"footer":{"socials":{"x":"https://x.com/LightcraftPro","linkedin":"https://linkedin.com/company/lightcraft-technology"}},"fonts":{"family":"Manrope"},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","latex":false},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lightcraft","hasAudioNarration":false,"actualSubdomain":"lightcraft","customDomains":["docs.lightcraft.pro"],"gitSource":{"type":"github","owner":"eliot-lightcraft","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0038ae49e01b85a1c7a7fd","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Spark","count":47},{"language":"default","tag":"Jetset","count":45},{"language":"default","tag":"Jetset Tutorials","count":34},{"language":"default","tag":"Jetset Cine","count":14},{"language":"default","tag":"Blender Workflows","count":12},{"language":"default","tag":"Build 3D scenes","count":11},{"language":"default","tag":"Tracking and Compositing","count":8},{"language":"default","tag":"Shoot takes (Spark iOS)","count":7},{"language":"default","tag":"Autoshot","count":6},{"language":"default","tag":"Blender","count":6}]},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":false,"deflection":{"enabled":true,"email":"support@lightcraft.pro","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"spark/brand.css","content":"#sidebar-content{background:linear-gradient(180deg, rgb(47 84 235 / 0.07), rgb(47 84 235 / 0.03) 55%, rgb(19 194 194 / 0.04));border:1px solid rgb(47 84 235 / 0.14);border-radius:14px}html.dark #sidebar-content{background:linear-gradient(180deg, rgb(47 84 235 / 0.14), rgb(47 84 235 / 0.05) 55%, rgb(19 194 194 / 0.05));border-color:rgb(89 126 247 / 0.18)}#sidebar-content .sidebar-group-header svg{background-color:#2F54EB}#sidebar-content .sidebar-group-header{color:#0A1230}#sidebar-content a:not([aria-current]){color:#4A5578}#sidebar-content a:not([aria-current]):hover{color:#0A1230}html.dark #sidebar-content .sidebar-group-header svg{background-color:#597EF7}html.dark #sidebar-content .sidebar-group-header{color:#E8EDFB}html.dark #sidebar-content a:not([aria-current]){color:#A3ACC6}html.dark #sidebar-content a:not([aria-current]):hover{color:#E8EDFB}#content-area h1,#content-area h2,#content-area h3,#content-area h4{color:#050B24}#content-area .prose{color:#2D3A5C}#content-area h2{margin-top:3rem;font-weight:700}html.dark #content-area h1,html.dark #content-area h2,html.dark #content-area h3,html.dark #content-area h4{color:#F5F8FF}html.dark #content-area .prose{color:#C8D0E6}#content-area h2{position:relative;padding-left:0.9rem}#content-area h2::before{content:\"\";position:absolute;left:0;top:0.15em;width:4px;height:1.05em;border-radius:2px;background:#2F54EB}html.dark #content-area h2::before{background:#597EF7}#content-area .prose strong{color:inherit;filter:brightness(1.12)}#content-area #header .prose{color:#4A5578}#table-of-contents li:not([data-active=\"true\"]) a{color:#4A5578}#table-of-contents li:not([data-active=\"true\"]) a:hover{color:#0A1230}html.dark #content-area #header .prose{color:#A3ACC6}html.dark #table-of-contents li:not([data-active=\"true\"]) a{color:#A3ACC6}html.dark #table-of-contents li:not([data-active=\"true\"]) a:hover{color:#E8EDFB}#content-area .key{margin-top:0.75rem;font-size:0.8rem;opacity:0.85}#content-area .key ol{list-style:none!important;counter-reset:k;margin:0!important;padding:0!important;display:grid;grid-template-columns:max-content;justify-content:center;gap:0.35rem 2rem}#content-area .key.cols-2 ol{grid-template-columns:repeat(2, max-content)}#content-area .key.cols-3 ol{grid-template-columns:repeat(3, max-content)}#content-area .key.left ol{justify-content:start}@media (max-width: 640px){#content-area .key ol,#content-area .key.cols-2 ol,#content-area .key.cols-3 ol{grid-template-columns:1fr;justify-content:start}}#content-area .key li{counter-increment:k;position:relative;margin:0!important;padding:0.1rem 0 0.1rem 1.6rem!important;line-height:1.4}#content-area .key li::marker{content:none}#content-area .key li::before{content:counter(k);position:absolute;left:0;top:0.15rem;width:1.1rem;height:1.1rem;border-radius:50%;background:#E0107A;color:#fff;font:800 0.62rem/1 Manrope, 'Segoe UI', sans-serif;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 1.25px #fff}.nav-tabs-item[aria-current]{color:#fff!important;isolation:isolate}.nav-tabs-item[aria-current]>div{display:none}.nav-tabs-item[aria-current]::before{content:\"\";position:absolute;inset:9px -10px;z-index:-1;border-radius:8px;background:#2F54EB}#sidebar-content{inset:16px 0!important}#sidebar-content>div:first-child{padding:16px 6px 6px!important}#sidebar-content :has(+#navigation-items):empty{display:none}html[data-spark]{--spk-width: 720px}html[data-spark] #content-side-layout{display:none}html[data-spark] #content-area{width:100%;max-width:calc(var(--spk-width) + 8px);margin-inline:auto}html[data-spark] #content-area #header,html[data-spark] #content{max-width:var(--spk-width)}@media (min-width: 1024px){html[data-spark]{--spk-rail: calc(max(32px, (var(--spk-vw, 100vw) - 1472px) / 2 + 32px) + 18rem);--spk-column: min(var(--spk-width), calc(var(--spk-vw, 100vw) - var(--spk-rail) - 3rem))}html[data-spark] :has(>#content-area){flex-direction:row}html[data-spark] #content-area{flex:none;width:var(--spk-column);max-width:none;padding-inline:0;margin-left:calc((var(--spk-vw, 100vw) - var(--spk-rail) - var(--spk-column)) / 2);margin-right:auto}}html[data-spark] [data-spk-group] .sidebar-group-header{cursor:pointer;margin-bottom:0;padding-top:6px;padding-bottom:6px;border-radius:10px}html[data-spark] [data-spk-group] .sidebar-group-header::after{content:\"\";margin-left:auto;margin-right:12px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);opacity:0.6;transition:transform 0.15s}html[data-spark] [data-spk-closed] .sidebar-group-header::after{transform:rotate(-45deg)}html[data-spark] [data-spk-group]{margin-top:6px!important}html[data-spark] #navigation-items{margin-top:-14px}html[data-spark] [data-spk-group] .sidebar-group-header{font-size:0.9375rem;font-weight:700}html[data-spark] [data-spk-group]>ul>li>a{padding-left:2.45rem!important;font-size:0.875rem;font-weight:400}#sidebar-content .spk-heads a:not([aria-current]){color:#66708F}html.dark #sidebar-content .spk-heads a:not([aria-current]){color:#8791AE}html[data-spark] [data-spk-closed]>ul{display:none}html[data-spark] [data-spk-group]>ul{margin:2px 0 8px}.spk-heads{margin:2px 0 6px 2.6rem;padding:0;list-style:none;border-left:1px solid rgb(47 84 235 / 0.25)}.spk-heads a{display:block;padding:9px 8px 9px 10px;margin-left:-1px;border-left:1px solid transparent;font-size:0.8125rem;line-height:1.35}#mobile-nav .spk-heads a{color:#4A5578}html.dark #mobile-nav .spk-heads a{color:#A3ACC6}#sidebar-content .spk-heads a[aria-current],#mobile-nav .spk-heads a[aria-current]{color:#2F54EB;border-left-color:#2F54EB}html.dark #sidebar-content .spk-heads a[aria-current],html.dark #mobile-nav .spk-heads a[aria-current]{color:#A3BEFF;border-left-color:#597EF7}.rel-type{font-size:0.8125rem;font-weight:600;opacity:0.8}#content-area a.rel-label{display:inline-block;margin:0 0.15rem;padding:0 0.45rem;border:1px solid rgb(47 84 235 / 0.35);border-bottom:1px solid rgb(47 84 235 / 0.35);border-radius:6px;font-size:0.75rem;line-height:1.5;text-decoration:none}html.dark #content-area a.rel-label{border-color:rgb(89 126 247 / 0.45)}"}]}
{"page":{"pagePath":"tutorials/blender-workflows/patching-ai-mattes","slug":"/tutorials/blender-workflows/patching-ai-mattes","pageMetadata":{"title":"Patching AI Mattes","description":"Use Blenders built-in image sequence editing to fix glitches on AI-generated matte sequences.","href":"/tutorials/blender-workflows/patching-ai-mattes"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Use Blenders built-in image sequence editing to fix glitches on AI-generated matte sequences.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components},{Heading,OptimizedFrame}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedFrame)_missingMdxReference(`OptimizedFrame`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`video-tutorial`,children:`Video Tutorial`}),`\n`,_jsx(OptimizedFrame,{className:`mint-w-full mint-aspect-video mint-rounded-xl`,src:`https://share.descript.com/embed/fp8kEdqfELF`,title:`Video walkthrough`,allow:`autoplay; fullscreen; picture-in-picture`,allowFullScreen:true}),`\n`,_jsx(Heading,{level:`1`,id:`transcription`,children:`Transcription`}),`\n`,_jsx(_components.p,{children:`In this tutorial we’ll see some common problems with the gray scale AI matte sequences that Autoshot generates, and how to go about fixing them with Blender’s built-in image sequence painting tools.`}),`\n`,_jsx(_components.p,{children:`As you saw previously, for our green screen shots, we primarily use AI mattes as a core matte or for use with a transparent image plane.`}),`\n`,_jsx(_components.p,{children:`For compositing, it’s eroded a bit and plugged into the core matte section of the keyer .`}),`\n`,_jsx(_components.p,{children:`However, AI mattes can flicker, which then shows up as a flickering key as we see here in frame 786, and going forward in our timeline.`}),`\n`,_jsx(Heading,{level:`2`,id:`trying-different-ai-matte-tools`,children:`Trying Different AI Matte Tools`}),`\n`,_jsx(_components.p,{children:`Different AI matting tools have different results on a given piece of footage. So your first step would be to try changing the AI Matte tool selection in Autoshot, change from Monet to PPNet, and rerunning the shot. You’ll still probably have a couple of flickers or unwanted areas, however that need some hand retouching.`}),`\n`,_jsx(Heading,{level:`2`,id:`ai-matte-greyscale-png-files`,children:`AI Matte Greyscale PNG Files`}),`\n`,_jsx(_components.p,{children:`So, fortunately, Autoshot generates the AI mattes as a series of gray scale PNG files that are easy to do small paint fixes with inside blender. So as you see there, it’s just a series of PNG files.`}),`\n`,_jsx(Heading,{level:`2`,id:`blender-scene-setup`,children:`Blender Scene Setup`}),`\n`,_jsx(_components.p,{children:`We’ll open up another instance of Blender and we’ll hit A to select everything, X to delete, and then we’re going to do shift A to Add Images as Planes.`}),`\n`,_jsx(_components.p,{children:`And then we’re going to browse to the directory where those AI mattes are stored.`}),`\n`,_jsx(_components.p,{children:`And we’ll click A to select all of the files and we’ll click Animate Image Sequence to bring that in as an animated image sequence. We’re going to set our material type to emit and then click Import Images as Planes. Okay, great. So Z for material preview.`}),`\n`,_jsx(_components.p,{children:`Give it a second. Okay. There’s Josh. Thanks Josh. And then we can scroll along the timeline to see the image animating. Great. That’s our gray scale image.`}),`\n`,_jsx(Heading,{level:`2`,id:`blender-texture-paint-tab`,children:`Blender Texture Paint Tab`}),`\n`,_jsx(_components.p,{children:`Next we’re going to change to our texture paint image tab. And then we’re going to make a horizontal split, and add a, a timeline to the bottom. That’s shift F 12 and zoom out until we can move our timeline over to the area we cared about. That was about frame 780.`}),`\n`,_jsx(_components.p,{children:`And then N to open up our side controls and click image.`}),`\n`,_jsx(Heading,{level:`2`,id:`setting-sequence-numbers`,children:`Setting Sequence Numbers`}),`\n`,_jsx(_components.p,{children:`And we’re going to set frames to the number of frames in the AI matte directory, in this case, 976. Start is one and Offset is 1000, as all of our image sequences start at 1001. All right, so then we can jump to Frame 786. Let’s actually change to our timeline, so then we can jump to frame 786 to see same frame where the flickers start.`}),`\n`,_jsx(_components.p,{children:`We’ll bring this a little bit water so we can paint more easily. For filling in AI matte patches, it’s easier to turn off pressure sensitivity, so I’m gonna turn that off here. Now we can work through the image sequence patching the holes.`}),`\n`,_jsx(Heading,{level:`2`,id:`painting-out-flickers`,children:`Painting Out Flickers`}),`\n`,_jsx(_components.p,{children:`We can right click and pick our radius.`}),`\n`,_jsx(_components.p,{children:`All right, there’s our radius. Then we can paint that and then hit right arrow to move to the next frame, right arrow and work our way through painting, painting the fixes pretty quickly.`}),`\n`,_jsx(_components.p,{children:`All right. You get the idea.`}),`\n`,_jsx(Heading,{level:`2`,id:`saving-edits-back-to-png-sequence`,children:`Saving Edits Back to PNG Sequence`}),`\n`,_jsx(_components.p,{children:`And now we’re going to choose Image and Save Sequence to save out the updated PNG files.`}),`\n`,_jsx(Heading,{level:`2`,id:`refreshing-mattes-in-blender`,children:`Refreshing Mattes in Blender`}),`\n`,_jsx(_components.p,{children:`We’re going to toggle back to the original Blender. When we move back and forth in the timeline, all the flickers are gone. So then you can exit and discard the temporary blend file you made to edit the sequence as the image information is now saved in the PNG sequence. All right. That’s it.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Patching AI Mattes","description":"Use Blenders built-in image sequence editing to fix glitches on AI-generated matte sequences.","href":"/tutorials/blender-workflows/patching-ai-mattes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Video Tutorial","slug":"video-tutorial","depth":2,"children":[]},{"title":"Transcription","slug":"transcription","depth":1,"children":[]},{"title":"Trying Different AI Matte Tools","slug":"trying-different-ai-matte-tools","depth":2,"children":[]},{"title":"AI Matte Greyscale PNG Files","slug":"ai-matte-greyscale-png-files","depth":2,"children":[]},{"title":"Blender Scene Setup","slug":"blender-scene-setup","depth":2,"children":[]},{"title":"Blender Texture Paint Tab","slug":"blender-texture-paint-tab","depth":2,"children":[]},{"title":"Setting Sequence Numbers","slug":"setting-sequence-numbers","depth":2,"children":[]},{"title":"Painting Out Flickers","slug":"painting-out-flickers","depth":2,"children":[]},{"title":"Saving Edits Back to PNG Sequence","slug":"saving-edits-back-to-png-sequence","depth":2,"children":[]},{"title":"Refreshing Mattes in Blender","slug":"refreshing-mattes-in-blender","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/lightcraft/0ba6041db34fead4/spark/sidebar.js"],"dynamicCss":".mint-aspect-video {\n aspect-ratio: 16 / 9\n}\n.mint-w-full {\n width: 100%\n}\n.mint-rounded-xl {\n border-radius: 0.75rem\n}","subdomain":"lightcraft","siteName":"Lightcraft Docs","title":"Patching AI Mattes - Lightcraft Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-11T20:31:37.481Z","originalFileLocation":"tutorials/blender-workflows/patching-ai-mattes.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Use Blenders built-in image sequence editing to fix glitches on AI-generated matte sequences.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lightcraft Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lightcraft/XUrSbX1riqFT8TSq/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lightcraft/XUrSbX1riqFT8TSq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lightcraft/XUrSbX1riqFT8TSq/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lightcraft/XUrSbX1riqFT8TSq/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lightcraft/XUrSbX1riqFT8TSq/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lightcraft/XUrSbX1riqFT8TSq/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lightcraft/XUrSbX1riqFT8TSq/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lightcraft/XUrSbX1riqFT8TSq/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lightcraft/XUrSbX1riqFT8TSq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Patching AI Mattes - Lightcraft Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use Blenders built-in image sequence editing to fix glitches on AI-generated matte sequences.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lightcraft Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lightcraft.pro/tutorials/blender-workflows/patching-ai-mattes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lightcraft.mintlify.site/_mintlify/api/og/v2?division=Blender+Workflows\u0026amp;title=Patching+AI+Mattes\u0026amp;description=Use+Blenders+built-in+image+sequence+editing+to+fix+glitches+on+AI-generated+matte+sequences.\u0026amp;theme=079a72f8280da8a7c769a543\u0026amp;signature=53a8a31293e4bae86a63861946e325f3354ea57b55192131e0a2e9e462c91725\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Patching AI Mattes - Lightcraft Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use Blenders built-in image sequence editing to fix glitches on AI-generated matte sequences.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lightcraft.mintlify.site/_mintlify/api/og/v2?division=Blender+Workflows\u0026amp;title=Patching+AI+Mattes\u0026amp;description=Use+Blenders+built-in+image+sequence+editing+to+fix+glitches+on+AI-generated+matte+sequences.\u0026amp;theme=079a72f8280da8a7c769a543\u0026amp;signature=53a8a31293e4bae86a63861946e325f3354ea57b55192131e0a2e9e462c91725\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lightcraft/XUrSbX1riqFT8TSq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lightcraft Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2F54EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lightcraft.pro/tutorials/blender-workflows/patching-ai-mattes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tutorials/blender-workflows/patching-ai-mattes.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lightcraft.pro/#organization\",\"name\":\"Lightcraft Docs\",\"url\":\"https://docs.lightcraft.pro\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lightcraft/ficLiW3XHbOD-r0Z/logo/lightcraft-plane-horizontal-logo-black.png?fit=max\u0026auto=format\u0026n=ficLiW3XHbOD-r0Z\u0026q=85\u0026s=9636a972543c30825f09bda22fb49dd7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lightcraft.pro#website\",\"name\":\"Lightcraft Docs\",\"url\":\"https://docs.lightcraft.pro\",\"publisher\":{\"@id\":\"https://docs.lightcraft.pro/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lightcraft.pro/tutorials/blender-workflows/patching-ai-mattes#webpage\",\"url\":\"https://docs.lightcraft.pro/tutorials/blender-workflows/patching-ai-mattes\",\"name\":\"Patching AI Mattes\",\"description\":\"Use Blenders built-in image sequence editing to fix glitches on AI-generated matte sequences.\",\"dateModified\":\"2026-09-11T20:31:37.481Z\",\"isPartOf\":{\"@id\":\"https://docs.lightcraft.pro#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lightcraft.pro/tutorials/blender-workflows/patching-ai-mattes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lightcraft.pro/tutorials/blender-workflows/patching-ai-mattes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blender Workflows\",\"item\":\"https://docs.lightcraft.pro/tutorials/blender-workflows/autoshot-blender-round-trip\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Patching AI Mattes\",\"item\":\"https://docs.lightcraft.pro/tutorials/blender-workflows/patching-ai-mattes\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.lightcraft.pro/tutorials/blender-workflows/patching-ai-mattes#article\",\"headline\":\"Patching AI Mattes\",\"name\":\"Patching AI Mattes\",\"description\":\"Use Blenders built-in image sequence editing to fix glitches on AI-generated matte sequences.\",\"url\":\"https://docs.lightcraft.pro/tutorials/blender-workflows/patching-ai-mattes\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lightcraft.pro/tutorials/blender-workflows/patching-ai-mattes#webpage\"},\"dateModified\":\"2026-09-11T20:31:37.481Z\",\"publisher\":{\"@id\":\"https://docs.lightcraft.pro/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lightcraft.pro#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lightcraft Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lightcraft Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/tutorials/blender-workflows/patching-ai-mattes.md","siteName":"Lightcraft Docs","nav":{"global":{},"tabs":[{"tab":"Jetset","pages":[{"title":"Jetset","href":"/faq/faq"}]},{"tab":"Spark","pages":[{"title":"Spark","href":"/spark/get-started/how-spark-works"}]},{"tab":"Jetset Tutorials","groups":[{"group":"Jetset","pages":[{"title":"Introduction to Jetset","href":"/tutorials/jetset/introduction-jetset"},{"title":"2D Backgrounds","href":"/tutorials/jetset/2d-backgrounds"},{"title":"Animation Controls","href":"/tutorials/jetset/animation-controls"}]},{"group":"Blender Workflows","pages":[{"title":"Autoshot Blender Round Trip","href":"/tutorials/blender-workflows/autoshot-blender-round-trip"},{"title":"Gaussian Splat setup","href":"/tutorials/blender-workflows/gaussian-splat-setup"},{"title":"In-Phone Re-Rendering","href":"/tutorials/blender-workflows/in-phone-rerender"},{"title":"Import Megascans to Blender","href":"/tutorials/blender-workflows/import-megascans-blender"},{"title":"Gaussian Splats from Blender","href":"/tutorials/blender-workflows/gaussian-splat-from-blender"},{"title":"xGrids Scans to Jetset","href":"/tutorials/blender-workflows/export-xgrids-scans-jetset"},{"title":"Convert Unreal to Blender","href":"/tutorials/blender-workflows/convert-unreal-scenes-blender"},{"title":"Convert Unreal 5.4+ to Blender","href":"/tutorials/blender-workflows/convert-unreal-5-4-blender"},{"title":"Exporting Animated Characters","href":"/tutorials/blender-workflows/exporting-animated-characters"},{"title":"Blender Viewport Compositor","href":"/tutorials/blender-workflows/render-scene-viewport-composite"},{"title":"Render Farm Export","description":"Autoshot can wrap up the files needed for a render farm export into a zip file ready for upload to SheepIt.","href":"/tutorials/blender-workflows/render-farm-export"},{"title":"Patching AI Mattes","href":"/tutorials/blender-workflows/patching-ai-mattes"}]},{"group":"Unreal Workflows","pages":[{"title":"Autoshot Unreal Round Trip","description":"A complete round trip workflow from Unreal to Jetset and back","href":"/tutorials/unreal-workflows/autoshot-unreal-round-trip"},{"title":"Export USD Unreal 5.4+","href":"/tutorials/unreal-workflows/export-usd-unreal-plugin"},{"title":"Rendering 360 Backgrounds","href":"/tutorials/unreal-workflows/rendering-360-backgrounds"},{"title":"Exporting Animated Scenes","href":"/tutorials/unreal-workflows/exporting-animated-scenes"},{"title":"Importing Animated Takes","href":"/tutorials/unreal-workflows/importing-animated-takes"}]},{"group":"Houdini","pages":[{"title":"Animated Character Export","href":"/tutorials/houdini/animated-character-export"}]},{"group":"Jetset Cine","pages":[{"title":"Jetset Cine Rigging","href":"/tutorials/jetset-cine/jetset-cine-rigging"},{"title":"Jetset Cine Lens Calibration","href":"/tutorials/jetset-cine/lens-calibration"},{"title":"Shooting Blackmagic BRAW","href":"/tutorials/jetset-cine/jetset-cine-blackmagic-braw"},{"title":"Cinematic Compositing","href":"/tutorials/jetset-cine/cinematic-compositing"},{"title":"Setting Cine Offset Manually","href":"/tutorials/jetset-cine/setting-cine-offset-manually"},{"title":"Matching Takes with Timecode","href":"/tutorials/jetset-cine/timecode-take-matching"},{"title":"Named Shots in Autoshot","href":"/tutorials/jetset-cine/named-shots-workflow"},{"title":"Aximmetry Setup","href":"/tutorials/jetset-cine/aximmetry-setup"},{"title":"Timeline Processing","href":"/tutorials/jetset-cine/timeline-processing"},{"title":"iOS Timeline Processing","href":"/tutorials/jetset-cine/ios-timeline-processing"}]},{"group":"Tracking and Compositing","pages":[{"title":"Tracking Refinement in SynthEyes","href":"/tutorials/tracking-compositing/tracking-refinement-syntheyes"},{"title":"Fixing a Misaligned Shot","href":"/tutorials/tracking-compositing/fixing-misaligned-shot"},{"title":"Tracking Refinement in GeoTracker for Blender","href":"/tutorials/tracking-compositing/geotracker-blender"}]}]}]},"basePath":"","title":"Patching AI Mattes - Lightcraft Docs","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}