View Single Post
Old 21st July 2006, 02:48 AM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,563
Default Re: Toggle orth/3d state w/toolbar button

For most of the visual settings, there are two variables (one for orth and 3d) - so you can have different settings in each type of view.

Adding check buttons is more complicated but it's easy to add some buttons to the toolbar.

You can put this in a file in the scripts folder (e.g. wirefilled.tcl)

Code:
toolbar_add_button "Wire"  "set prefs_view3dmode 1; set prefs_filled_orth  0; ac3d redraw_all" "set views to wireframe"
toolbar_add_button "Filled"  "set prefs_view3dmode 0; set prefs_filled_orth  1; ac3d redraw_all" "set views to filled"
These buttons will set all views (orth and 3D) either to wireframe or filled.

Note that it's probably currently easier to press 'w' for this function (in orth or 3d windows) but it's a simple example.

For other variables that control the views, look in tcl/ac3d.tcl, at the menu commands.

Andy
Andy is offline   Reply With Quote