3b1b / 3b1b/manim

LaggedStart not working

未關閉
#1,287 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
93.9k
分支
7.7k
平均合併
2 天 13 小時
30 天內合併 PR
4

描述

Im trying to use the LaggedStart() animation but i keep getting errors

Error message is: "object of type 'ShowCreation' has no len()"

`self.play(
LaggedStart(*[
ShowCreation(obj1, run_time=0.5),
ShowCreation(obj2, run_time=0.5),
Write(obj2, run_time=0.5)]
)
)`

The animations on their own work but i want then to start slighty after one another.

ive also tried without the array and also AnimationGroup() with lag_ratio=0.5 and the animations worked but they started at the exact same time

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

查看 manim/animation/animation.py 中的 LaggedStart 類別,了解它如何處理動畫。此錯誤表示 ShowCreation 物件被錯誤地處理。檢查 __len__ 方法或動畫的傳遞方式。執行提供的程式碼片段以重現該錯誤,然後檢查 AnimationGroup 和 LaggedStart 的建構函式。

由索引模型根據 Issue 內容生成。

評估

Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。