用代码绘制的复古赛璐珞卡通短片
- 播放
- 4.2万
- 点赞
- 730
- 评论
- 21
- 收藏
- 1,466
作者发布了一套面向 Claude Opus 5.5 的完整提示词,旨在不使用图像或视频生成模型的前提下,通过 Python、SVG 和 FFmpeg 纯代码生成竖屏复古手绘动画短片。
完整提示词9,315 字符
I want you to turn my story into a vertical animated short that looks like somebody drew it by hand, inked it on cels and pulled it off an old cartoon reel. Draw the whole thing in code. No image generators, video generators, stock art or photos. 1. Start by asking me four things - What's the story? I can give you a true event, a legend, a "what if," or just a topic. If I only give you a topic, pitch me five specific story ideas to choose from. - How long are we going? Default to 60 to 90 seconds, with the option to make a 10-second test scene. - What are we doing for voice? I can upload a voiceover, record a script you write, or go captions only. - Am I uploading reference frames or a sound effects pack? You decide the era, cast, locations and palette based on the story. If I give you references, study them at full size, then zoom in until you can see how the strokes taper, where the shadows break and what happens around the edges of the color. 2. Give me a story people actually want to finish Open with one short line, in present tense, right in the middle of the worst or strangest thing that happens. Then tell me who this person is, what they wanted, where things went sideways and what the twist changes. Finish with one line that lands. Keep the sentences short enough to say out loud. Aim for about 3.5 words per second with very little dead air. That gives you roughly 210 words for a minute. For a true story, check every factual claim and flag anything you couldn't confirm. Give me three title options built around a specific action or outcome. Use formats like "He [did X] for [Y]" or "How [someone] [achieved an outcome]." 3. Make the cast recognizable before anybody says a word Design an original cast and new sets for every story. Keep the drawing style consistent across videos. Leave characters from existing channels and reference images alone. Historical figures who have died can appear as caricatures. Exclude real living people. Give every character a silhouette I could pick out from across the room and one feature I'll remember. Maybe one guy is all jaw, another is tall and narrow with a nose that enters the shot before he does, and the shortest one has a single gold tooth. Give them oversized, uneven heads with the smaller features crowded toward the middle. Draw the leads in full detail. Use the same pen with fewer marks for extras. Show age and weight in the shape of the face. Draw the second chin, the stacked bags under the eyes, the folds running from nose to jowl. Let wrinkles follow the skull. Give the eyes hooded lids, lilac whites and a heavy lash line. Use solid black or pale shapes with barbed edges for facial hair. Give each lead at least five head drawings covering neutral, blink, anger, smugness or joy, and shock. Add grief or fear when the story calls for it. On shock, open the eyes into big lilac discs with pinprick pupils. On anger, drive the brows down, shrink the pupils and flare the nostrils. When someone opens their mouth, move the jaw, chin, jowls and beard together. Draw the lip rim, dark interior, tongue and both rows of individual teeth. Show the gums on a big grin and make sure the moustache clears it. Draw each hand separately, one lit and one shaded. Give the fingers padded joints, knuckle bumps, tiny crease marks and short dark nails that stop at the fingertips. Add a ring if it belongs on that character. 4. Get the ink, color and sets right - Ink. At 1080 pixels wide, aim for thin dip-pen lines around 3 to 5 px. Let each line swell with pressure, wobble slightly and taper to a point. Use warm sepia-black #170b08 for the main ink and slightly translucent dark red #4d140a for the finest marks. Thick, uniform outlines will make the characters look like stickers. - Color. Lock four or five story-specific colors before you start. Pick a cobalt or periwinkle blue, one warm skin color for the cast, a cream or lilac pale, and one or two accents. Hot pink, salmon or orange-red can work for skin. Use flat character fills. Skin gets one darker shade for cast shadows and one lighter shade where bone or flesh catches light. - Texture. Work small. Use pores and ticks on skin, bristles for stubble and rows of short dashes on fur, wool and knits. Give patterned clothing actual plaid, florals, brocade scrolls or medallions. Break stone into courses with branching cracks. Give wood plank seams and little grain marks. Skip the long hatch strokes. - Sets. Build the location the scene calls for, whether that's a courtroom, a ship or somebody's farm. Split light and shadow into two flat tones with hard diagonal edges. At night, use salmon or pink light against cobalt shadow, with a pale moon and a soft halo. By day, use a pale blue sky, warm lit surfaces and blue-violet shadows. Indoors, let a single window or doorway throw a warm patch across a cool room. - Props. If the script mentions a letter, a coin, a meal or an animal, draw it in the same ink and flat color. Give each lamp, coin or blade a single glint. Soften the background behind close-ups. 5. Make every line of the script do something on screen Break the script into clauses. For each clause, give me the subject, the expression, the body action and the camera move. If you can't picture somebody acting out a line, rewrite it. Cycle through a close-up, a wide shot, a prop insert and a reaction. Change the framing every shot. Put a second character on screen reacting in at least one out of every four shots. Pull wide enough to see the hands when the hands are doing the acting. Aim for a picture change every 2.3 seconds, a fresh action about every second and movement in at least 95% of frames. Keep the camera moving with a drift, push-in, orbit or a quick punch-in on a reveal. Connect locations with a 4 to 6 frame zoom-whip or blur-whip. Avoid hard cuts and clamp the camera inside the set. Snap into a new pose in one frame, overshoot it slightly, then let it settle. Give each emotion its own timing. A calm character breathes and blinks. A smug one lifts his chin, tilts his head and gives a silent chuckle. Shock throws his head back and his hands off whatever he's holding. Anger pushes his head forward, fist up, chest heaving. Grief takes longer. His head lowers first, then his shoulders drop. Change the face every 0.3 to 0.8 seconds while the character is on screen. Keep something moving behind the lead too. Smoke, water, birds, flags or one person in the crowd is enough. 6. Build it so the drawings hold together in motion 1. Render at 1080 × 1920, 30 fps. Use Python to write SVG, rsvg-convert to rasterize, Pillow and NumPy to composite, and FFmpeg to encode. 2. Time the voiceover word by word before animating. Use Whisper if available. Otherwise, ask for the transcript and distribute the words across the audio by word length. Tie shots, gestures and captions to those timings. For captions only, allow about 1.1 seconds per chunk. 3. Write one ink function that takes a list of points and produces a filled, variable-width polygon. Use Catmull-Rom smoothing, pressure changes, tapered ends and a little wobble. Draw every line through that function. Avoid SVG strokes. 4. Build the reusable drawing tools once: ink, ticks, dash rows, fur, cracks, masonry, scrolls, medallions, fingers, teeth, lidded eyes and a jaw-drop warp. Then build every story from that kit. 5. Jitter the polygon edges so shapes look hand-cut. Use a fixed random seed and reseed it at the start of every body part, so each part redraws the same way every frame and only what you move actually moves. 6. Rig each lead like a jointed cut-out: body, each arm, shoulders, one head per expression, hands, plus any extra pose the script needs. Every part gets its own transparent layer and pivot, rendered at 2x on a canvas padded left and right. Extras can be single drawings with a little breathing bob. 7. Build each set in layers (foreground, mid, back, sky) so the camera gets parallax when it moves. 8. Every frame, pose the joints, apply the camera and draw each layer to the final size in one transform. Run the old-cartoon finish on the whole frame, then burn the captions on top so the text stays crisp. 9. Encode one mp4 per shot with libx264 at CRF 17, keep the whips inside the shot files, join them with the concat demuxer and add sound last. 10. Sound. If I upload a pack, use it. One effect per event: a whoosh on a whip, a sting on a shock, a hit under an impact, a chime on a reveal. Land each one on its impact frame, about 8 every 10 seconds, all under the voice. GOTCHAS Thick outlines make it look like stickers. Normal face proportions look generic, so blow up the head and shrink the features. Two characters with the same silhouette will get mixed up. A nail past the fingertip turns a hand into a claw. If the whole drawing shimmers between expressions, a part isn't being reseeded. Never reuse a cast or set from one story in the next one, or the channel starts looking mass produced. Keep captions off faces and hands. HOW WE START Ask me the four questions. Then show me the script and three titles, the cast and set sheet with the locked palette, and the shot list with one still per shot. Wait for my yes at every step. Then render it and tell me honestly what came out weaker than planned.
出处:原帖正文。提示词保留原文语言,未做改写。
📬
订阅 Newsletter,免费获取完整手册
订阅即送《AIP出海自媒体实战手册》完整版(下载链接发到邮箱),还有每周AI精选内容推送
作者提到的工具
原帖:https://x.com/wayofzorro/status/2126505611126849543
全部作品数据开源在 GitHub · awesome-opus-5.5-video。
模型归属以作者自述为准,本站未独立复现。播放量为 2026-11-30 的快照。作品版权归原作者,修改署名或下架请在 X 私信 @GoSailGlobal。