how to make a video from mill.py
Hello again,
Right now I explored the utils.makeVideo() and the utils.encodeVid
First I deleted the #s at the end of mill.py (lines 73 to the end), added "from python import qt" above O.engines[] and changed line 74 to get snapshotengine running:
...
qt.SnapshotEng
...
Note that one also has to comment the O.wait() out (line 82 after "O.run(20000)").
Now one can get the snapshots in the /tmp folder.
I dont know why, but "utils.
Running script mill.py
789 WARN yade.SpherePack /home/me/
804 WARN yade.SpherePack /home/me/
Numer of grains 508
Traceback (most recent call last):
File "/home/
execfile(
File "mill.py", line 83, in <module>
utils.
TypeError: 'SnapshotEngine' object is unsubscriptable
... So delete this line and replace it with this two lines:
raw_input('press ENTER')
utils.makeVideo
Now it is working and one can get a video from mill.py in the examples folder.
Regards,
Christian
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Christian Jakob
- Solved:
- Last query:
- Last reply: