hexagon logo

Synchronize View of Multiple Viewports

I have two viewports. When I rotate / scale one, I would like the second one to update to the same view as well.
 
Is there any callback I can fork into when a viewport gets focus? (This would let me grab the view info from the other view and set in the newly activated view).
 
Alternatively if there is anything else to keep views in sync.
Parents
  • Warning the following is not intended for normal use.
    Depending on how much you really want to keep those view ports synchronized:
    I noted that with a !!trace calls that the graphics manager is checking the display status of other viewing menu forms when you release the mouse after rotating a view. So, if you're prepared to sacrifice a complete menu class like "viewing, View From/To" - you could "hijack" it by redefining the class and use it to update the other displays.
     
    So I wrote a uil_view_fromto.pcl class that uses Darrel's library, it basically does nothing except call Darrels function.
    Compile it and add it in to the library, or just add another library with it in or compile it live in the session (!! input uil_view_fromto.pcl). This uil_view_fromto class of functions will be found before the standard ones (due to the searching order for finding functions) so that the standard functionality is no longer available, so that is a big reason not to do this but it depends on what you're prepared to sacrifice in order to get that synchronization automatic.
     

    Attached Files (1)
Reply
  • Warning the following is not intended for normal use.
    Depending on how much you really want to keep those view ports synchronized:
    I noted that with a !!trace calls that the graphics manager is checking the display status of other viewing menu forms when you release the mouse after rotating a view. So, if you're prepared to sacrifice a complete menu class like "viewing, View From/To" - you could "hijack" it by redefining the class and use it to update the other displays.
     
    So I wrote a uil_view_fromto.pcl class that uses Darrel's library, it basically does nothing except call Darrels function.
    Compile it and add it in to the library, or just add another library with it in or compile it live in the session (!! input uil_view_fromto.pcl). This uil_view_fromto class of functions will be found before the standard ones (due to the searching order for finding functions) so that the standard functionality is no longer available, so that is a big reason not to do this but it depends on what you're prepared to sacrifice in order to get that synchronization automatic.
     

    Attached Files (1)
Children
No Data