3b1b / 3b1b/manim

LaggedStart not working

Aberta
#1,287 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
93.9k
Forks
7.7k
Merge médio
2d 13h
PRs com merge (30d)
4

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Olhe para a classe LaggedStart em manim/animation/animation.py para entender como ela processa as animações. O erro sugere que os objetos ShowCreation estão sendo tratados de forma incorreta. Verifique o método __len__ ou como as animações são passadas. Execute o snippet de código fornecido para reproduzir o erro e, em seguida, examine os construtores de AnimationGroup e LaggedStart.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.