Nas*_*ser 16 wolfram-mathematica mathematica-8
导出到动画gif似乎在Mathematica 8.0.1中已经改变了?
我通常只需编写一个动画的动画GIF:
v=Manipulate[....]
then Export["foo.gif",v];
Run Code Online (Sandbox Code Playgroud)
但现在它不起作用.我只得到一个静态图像.
这是一个例子:
v=Manipulate[
Text[t],
{{t,4,"start"},0,10,1,ControlType->Trigger,AnimationRate->1,AnimationRepetitions->10}
]
Run Code Online (Sandbox Code Playgroud)
现在Export["foo.gif",v]只生成静态图像,因为没有运行.
但是Export["foo.avi",v]有效,它确实会产生一个正在运行的avi电影.
此外,我曾经使用过动画GIF选项,但现在不支持:
Export["foo.gif",v,ConversionOptions->{"AnimationDisplayTime"->0.5,"Loop"->True},ImageSize->{500,500}]
Export::convoptobs: ConversionOptions is obsolete.
Run Code Online (Sandbox Code Playgroud)
当我去帮忙时,我没有看到GIF的选项.如何控制动画延迟等?
我以为有人在这里可能有个主意.
谢谢 - 纳瑟
Mar*_*ure 22
您可以将a导出Table为动画GIF.
v = Table[Panel[Text[t]], {t, 0, 10, 1}];
Export["anim.gif", v, "DisplayDurations" -> 0.5]
Run Code Online (Sandbox Code Playgroud)
如果你绝对希望动画看起来像一个Manipulate,你可以这样做.
v = Table[Manipulate[Text[t],
{{t, Mod[k, 10], "start"}, 0, 10, 1, ControlType -> Trigger}],
{k, 4, 14}];
Export["Manip.gif", v, "DisplayDurations" -> 0.5]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8463 次 |
| 最近记录: |