Jump to content
Sign in to follow this  
Guest

Is it possible to hide the X-Y-Z triad of a tracking system?

Recommended Posts

Guest

I would like to be able to hide the X-Y-Z axes of a tracking system.  I can turn off the Global axes in the Preferences>Options>Appearance panel, but I can't find a similar option for shutting off the tracking system axes.


Share this post


Link to post
Share on other sites

Hi!


 


is there a tcl/tk command in order to hide the  Global axes in Hyperview? I need for a scrip ;-)


 


In other words I want to do is to turn off the Global axes like with  the Preferences>Options>Appearance Panel, but with a tcl script


 


Thanks


Share this post


Link to post
Share on other sites

Hi!

 

is there a tcl/tk command in order to hide the  Global axes in Hyperview? I need for a scrip ;-)

 

In other words I want to do is to turn off the Global axes like with  the Preferences>Options>Appearance Panel, but with a tcl script

 

Thanks

 

Sure, there is

below is relevant commands:

 

 

catch {

     set ::post::optionsdialog::axes false

     ::post::optionsdialog::OnButtonPressed 1

}

 

B)

asalinasl likes this

Share this post


Link to post
Share on other sites

Hi,

 

I'm just placing the two lines

 

                    set ::post::optionsdialog::axes false;

                   ::post::optionsdialog::OnButtonPressed 1;

 

in a bigger script and I'm getting following error:

 

--------------------

1 Error:   Tcl script error (Capture HI Res Image) : can't read "fgc": no
              such variable                                                    
              while executing                                                  
              "# Compiled -- no source code available                          
              error "called a copy of a compiled script""                      
              (procedure "ApplyAppearence" line 1)                             
              invoked from within                                              
              "# Compiled -- no source code available                          
              error "called a copy of a compiled script""                      
              (procedure "ApplyChanges" line 1)                                
              invoked from within                                              
              "# Compiled -- no source code available                          
              error "called a copy of a compiled script""                      
              (procedure "OnCloseDialog" line 1)                               
              invoked from within                                              
              "# Compiled -- no source code available                          
              error "called a copy of a compiled script""                      
              (procedure "::post::optionsdialog::OnButtonPressed" line 1)      
              invoked from within                                              
              "::post::optionsdialog::OnButtonPressed 1"     

------------------------------

 

Thanks for the help!

Share this post


Link to post
Share on other sites

That's why i put it in "catch" command


perhaps you need to open appearance panel once before run your scrip


 


or add below code once when start hyperview:


 


after 50 destroy .postOptionsDialog;::hw::ExecuteMenuItem 263; 

Share this post


Link to post
Share on other sites

Tinh,


 


you are right!! ;)  If I firstly open the appearance pannel, then my script including the two added lines works quite well by turning the axes off and afterward again on.


 


The question is how can I automatically open that Panel before I run my script. You wrote  about doing that when hyperview was started. Could you give me more Details about that?


 


The best solution would be to add some code in my script to open the apperance Panel automatically in order to get the two lines:


-------------------------------------------------


         set ::post::optionsdialog::axes false


        ::post::optionsdialog::OnButtonPressed 1


---------------------------------------------------


working. :wacko:


 


Thanks for your advice!

Share this post


Link to post
Share on other sites

ah, you need not to open it once when starting hv.


 


try add below code into your script



if {[catch { 
        set ::post::optionsdialog::axes false
        ::post::optionsdialog::OnButtonPressed 1
}]} {
        after 50 { destroy .postOptionsDialog;update
                       set ::post::optionsdialog::axes false
                       ::post::optionsdialog::OnButtonPressed 1}
        ::hw::ExecuteMenuItem 263; 
}

Share this post


Link to post
Share on other sites

Hi Tinh!

 

I copied the code that you posted but the problem persists. i.e. I always Need first to open the appearance panel in order to get  the axes to disapper.

 

The script works but at the end I always got the following error:

 

-----------------------------------------

can't read "fgc": no such variable
can't read "fgc": no such variable
    while executing
"# Compiled -- no source code available
error "called a copy of a compiled script""
    (procedure "ApplyAppearence" line 1)
    invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
    (procedure "ApplyChanges" line 1)
    invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
    (procedure "OnCloseDialog" line 1)
    invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
    (procedure "::post::optionsdialog::OnButtonPressed" line 1)
    invoked from within
"::post::optionsdialog::OnButtonPressed 1"
    ("after" script)

------------------------------------------------------

 

Regards

 

Alfredo

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...