An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
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.
SOLVED:
Right click in the model browser tree and select 'Hide'.
Thank you for the tip ;-)
Regards,
Mario
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
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
}
/emoticons/default_cool.png' alt='B)'>
Thank you very much! /emoticons/default_smile.png' alt=':)' srcset='/emoticons/smile@2x.png 2x' width='20' height='20'>
That's exactly what I needed /emoticons/default_wink.png' alt=';)' srcset='/emoticons/wink@2x.png 2x' width='20' height='20'>
Regards
Alfredo
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!
Where's the 'bigger script' ?
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;
Tinh,
you are right!! /emoticons/default_wink.png' alt=';)' srcset='/emoticons/wink@2x.png 2x' width='20' height='20'> 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:
-------------------------------------------------
---------------------------------------------------
working. /emoticons/default_wacko.png' alt=':wacko:'>
Thanks for your advice!
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; }
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 variablecan't read 'fgc': no such variable while executing'# Compiled -- no source code availableerror 'called a copy of a compiled script'' (procedure 'ApplyAppearence' line 1) invoked from within'# Compiled -- no source code availableerror 'called a copy of a compiled script'' (procedure 'ApplyChanges' line 1) invoked from within'# Compiled -- no source code availableerror 'called a copy of a compiled script'' (procedure 'OnCloseDialog' line 1) invoked from within'# Compiled -- no source code availableerror 'called a copy of a compiled script'' (procedure '::post::optionsdialog::OnButtonPressed' line 1) invoked from within'::post::optionsdialog::OnButtonPressed 1' ('after' script)
------------------------------------------------------
Hi Alfredo
could you try increasing the number follow 'after' from 50 to 100, 200, 500,...?
Hallo Tinh,
I tried it too, but the same error message came.
/emoticons/default_wacko.png' alt=':wacko:'> /emoticons/default_wacko.png' alt=':wacko:'> :wacko: /emoticons/default_wacko.png' alt=':wacko:'> /emoticons/default_wacko.png' alt=':wacko:'>