Moon Wizard
October 30th, 2009, 21:44
Has anyone had any luck getting the setViewpoint to work correctly on imagecontrols?
I built a script that captured the image window getViewpoint() information on window close, and tries to use setViewpoint() with the same values when the image window is opened again.
I've verified that the data points are being saved correctly to the Campaign Registry, and that they are loaded correctly. However, when I call setViewpoint, it doesn't seem to restore the original viewpoint.
When testing, remember that FG saves the image viewpoint between opening/closing the window during the course of a session as well as between ruleset reloads. It doesn't remember the image viewpoint when FG loads up the ruleset initially, which was what I was trying to solve.
Thanks,
JPG
I built a script that captured the image window getViewpoint() information on window close, and tries to use setViewpoint() with the same values when the image window is opened again.
I've verified that the data points are being saved correctly to the Campaign Registry, and that they are loaded correctly. However, when I call setViewpoint, it doesn't seem to restore the original viewpoint.
When testing, remember that FG saves the image viewpoint between opening/closing the window during the course of a session as well as between ruleset reloads. It doesn't remember the image viewpoint when FG loads up the ruleset initially, which was what I was trying to solve.
Thanks,
JPG