yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #10431
Re: [Question #256494]: save state of camera?
Question #256494 on Yade changed:
https://answers.launchpad.net/yade/+question/256494
Status: Open => Answered
Kneib François proposed the following answer:
Hi Bruno,
very interesting thing to do. I just found it, the qt viewer is saved
into the simulation if you use O.save(...) :
1°) launch yade, launch the 3d view.
2°) type : V=yade.qt.views()[0]
3°) move the view as you want to save it.
4°) type : V.saveState(0) # where 0 is a memory slot number, you should be able to save many 3d-view sates by changing this integer.
5°) save the simulation with : O.save("whatever")
6°) close and re-launch yade.
7°) load the simulation with O.load("whatever")
8°) launch the 3d view
9°) type again : V=yade.qt.views()[0]
10°) type : V.loadState(0)
11°) et voilà
Warning : after step 6°), you have to load the simulation before
starting the 3D view. Otherwise the memory slot will not be recovered.
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.