Observer - splitview problems in celx scripts
Posted: 17.01.2005, 16:58
I don't get along with this observers and multiple views in celx.
When I create a second view via 'splitview' and want to erase it again later I either get the first view deleted instead or I lose all my observer-objects validity. This even doesn't get restored when the script is canceled and restartet again.
observer1:splitview() results in observer1 being assigned to the newly created view.
observer2 = celestia:getobserver() creates an object identical to observer1.
observer1:singleview() OR
observer2:singleview() results in the first view beeing deleted.
observer1:deleteview() results in observer1 AND observer2 being invalid.
observer1 = celestia:getobserver() called again doesn't make observer1 valid again!
How can I change the actual view from within the script ??????
allobservers = celestia:getobservers()
allobservers[1]:singleview() results in view 1 being deleted.
allobservers[2]:singleview() results in all other observers becoming invalid and view 2 set to a random position! (????????)
observer1 = allobservers[2] doesn't restore anything.
So what???
maxim
When I create a second view via 'splitview' and want to erase it again later I either get the first view deleted instead or I lose all my observer-objects validity. This even doesn't get restored when the script is canceled and restartet again.
observer1:splitview() results in observer1 being assigned to the newly created view.
observer2 = celestia:getobserver() creates an object identical to observer1.
observer1:singleview() OR
observer2:singleview() results in the first view beeing deleted.
observer1:deleteview() results in observer1 AND observer2 being invalid.
observer1 = celestia:getobserver() called again doesn't make observer1 valid again!
How can I change the actual view from within the script ??????
allobservers = celestia:getobservers()
allobservers[1]:singleview() results in view 1 being deleted.
allobservers[2]:singleview() results in all other observers becoming invalid and view 2 set to a random position! (????????)
observer1 = allobservers[2] doesn't restore anything.
So what???
maxim