I have 2 viewports in our application and previous posts resolved the issue of synchronizing the rotations & translations of the two.
I am having an issue if user changes the view rotation center in 1 viewport I can't set it in the other;
I see the command uil_toolbar.rotation_center() calls gm_point_on_screen_init, then ga_view_rotation_center_set.
I tried ga_view_rotation_center_get() but it doesn't exist. Also, I tried to extract the screen pick from gm_point_on_screen_init(astring) but it stays empty.
So question is how to determine the new rotation center just set, then I can apply it to the other viewport.
PS. Note that I used the view_to_get to get the center point of the view but did not use the view_to_set. This is because to use view_to_set and keep other perceived settings the same you would need to change the "from_point" and the centre_x/y as well; to keep the image in the same place on the screen (center get/set) and the screen z vector(to->from) the same .
The ga_view_rotation_center_set is doing all this for you.
PS. Note that I used the view_to_get to get the center point of the view but did not use the view_to_set. This is because to use view_to_set and keep other perceived settings the same you would need to change the "from_point" and the centre_x/y as well; to keep the image in the same place on the screen (center get/set) and the screen z vector(to->from) the same .
The ga_view_rotation_center_set is doing all this for you.