Jump to content
Sign in to follow this  
Sagar Desai

Restore view using view matrix

Recommended Posts

Hello

 

So I have 4*4 view matrix of a perticular view so I need to restore it how can I do it?

 

I want it in tcl file

 

for example FitAllFrames

command will do fit to screen 

 

so can is there command which will restore the view using my 4*4 view matrix??

 

OR

 

I have found this script in hm help document

 

hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
window_handle GetViewControlHandle viewctrl_handle
viewctrl_handle RestoreView “View 1“
puts "Current View: [viewctrl_handle GetCurrentView]"
 
hwi CloseStack

 

I have view 1 already saved in my hyperview

but there is problem with this last command

 

puts "Current View: [viewctrl_handle GetCurrentView]"

 

If I understand correctly this is to make the the view 1 current but its not working

but when I click on window it restores view 

so what is proble?

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...