#set:bg_colour=gui.html.bg_colour
#set:font_colour=gui.html.font_colour
set:font_colour_code=#aaaaff
set:font_colour_bold=gui.html.highlight_colour
c:fuse
c:html.ItemState index* 0
c:html.ItemState index-home 1
c:html.ItemState tab* 2
c:lines 10
p:This tutorial deals with modifying the Olex2 GUI to suit one's preferences. The sample structure for Co110 will now be loaded.
c:freeze(true)
c:reap 'DataDir()/samples/Co110/Co110.ins'
c:spy.revert_to_original()
c:load style default.glds
c:showQ a false
c:showQ b false
c:freeze(false)
p:Most of the functions in this tutorial are invoked with line commands (entered in the graphics window), as they are not in the GUI.
p:The 'setfont' command can be used to specify the font in any area of Olex2. The particular area for which the font is to be specified immediately follows 'setfont' in the command.
p:For example, to change the font in pictures and labels, type 'setfont picture_labels choosefont()'. This brings up a menu from which to select the font, font style, size and script. Select OK or Cancel in the menu to continue.
c:setfont picture_labels choosefont()
p:The 'editmaterial' command allows the colour properties of any specified area in the software to be customised, with the name of the area immediately following 'editmaterial', as before.
p:For example, in order to edit the colour and other properties of the command name in the help window, enter 'editmaterial helpcmd'. This will bring up a window in which font colours, backgrounds, transparency, etc. can be set. Select OK or Cancel in the menu to continue.
c:editmaterial helpcmd
p:Similarly, 'editmaterial helptxt' specifies the properties of the body of help items.
p:The colour properties of the console output are modified with 'editmaterial execout', while 'editmaterial error' and 'editmaterial exception' modify the colour properties of errors and exceptions reported in the console, respectively.
p:Frequently used display styles, scene properties, etc. can be conveniently saved with the 'save' command. For example, 'save style' saves the current style. Select Save or Cancel in the menu to continue.
c:save style
p:In the same way, one can also use 'scene', 'view', or 'model' with the save command. (The view will be saved as a .xlv file and the model as a .oxm file in the working directory for the structure.)
p:The 'load' command is used to reapply any saved style, scene, etc. For example, 'load style' opens a menu to apply a previously saved style. Select Open or Cancel in the menu to continue.
c:load style
p:A previously saved view or model is recalled by typing 'load view' or 'load model', respectively.
p:To change the colours of the background gradient, enter 'grad'. This will open up a window in which the four corner colours of the background can be set as desired. Select OK or Cancel in the menu to continue.
c:grad
p:It is possible to use an image as the background by adding '-p=' to the 'grad' command, followed by the name of the image file, as 'grad -p="[file path]"'. This can be useful for simultaneously displaying two different views of the model on the screen.
p:To return to the normal background, type 'grad -p=default'. When Olex2 is restarted, the default background will be shown.
p:The 'brad' command adjusts bond radii. So, for example, 'brad 3' will make the displayed bonds three times thicker than normal.
c:brad 3
c:refresh
p:To redisplay all bonds with their default thickness of 1, type 'brad 1'.
c:brad 1
c:refresh
p:A number of structure drawing styles are available in Olex2. To see these options, first click the View tab.
h:tab-view
c:spy.demo.switch_tab_for_tutorials(view)
p:Now open the Quick Drawing Styles tool tab.
h:h2-quick-drawing-styles
c:html.ItemState h2-view-quick-drawing-styles 1
p:To display atoms as perfect spheres, click the Balls and Sticks icon in this tool tab or type 'pers'.
h:toolbar-ball-and-stick@#name
c:pers
c:refresh
p:To return to the standard thermal ellipsoid display click the Ellipsoid icon or enter 'telp' at the command prompt. (The ellipsoid icon with an 'H' on it gives a very similar view.)
h:toolbar-anis@#name
c:telp
c:refresh
p:A wire-frame display is sometimes helpful in viewing large or congested structures. To show the model in this view, click the Wire Frame icon.
h:toolbar-wireframe@#name
c:proj
c:refresh
p:Other views such as the space-filling mode and the tube mode are also available from this tool tab. The line commands for these views are 'sfil' and 'tubes', respectively.
h:toolbar-sphere-packing@#name; 1
h:toolbar-bicoloured-bonds@#name; 1
c:load style default.glds
c:refresh
p:A display style not in the GUI shows atoms with one octant cut out of each ellipsoid. Type 'ads ort' to access this view.
c:ads ort
c:refresh
#p:The next command that is going to be looked at is 'arad' which applies different radii to all/selected atoms.
#
#p:The first command is 'arad sfil' which will cause sphere packing radii (as in ShelXTL XP).
#c:arad sfil
#c:refresh
#
#p:The next command is 'arad pers' which is a fixed radii for model viewing.
#c:arad pers
#c:refresh
#
#p:The next command is 'arad isot' which gives each atom its own radius depending on the value of the Uiso or ADP.
#c:arad isot
#c:refresh
#
#p:The next command is 'arad isoth' this is the same as 'isot', but the H atoms are also displayed with their real Uiso's.
#c:arad isoth
#c:refresh
#
#p:The next command is 'arad bond' this will cause all atoms to get the same radii as the default bond radius.
#c:arad bond
#c:refresh
#
#p:The last command is 'arad vdw' the default/loaded Van der Waals radii used in most of the calculations.
#c:arad vdw
#c:refresh
#
p:The 'azoom' command adjusts the zoom on the selected atoms to a given percentage. Be very careful with this command, as it can play havoc with the ORTEP 50% probability convention.
c:load style default.glds
c:refresh
p:For example, to display the carbons in this structure at 50% zoom, select them and type 'azoom 50'.
c:sel $C
c:azoom 50
c:sel -u
c:refresh
p:To make the carbons 50% bigger, select them and enter the command 'azoom 150'.
c:sel $C
c:azoom 150
c:sel -u
c:refresh
p:To return all the atoms back to their actual size, select them again and type 'azoom 100'.
c:sel $C
c:azoom 100
c:sel -u
c:refresh
p:End of tutorial. Click on the 'Next' button to replay the tutorial or the 'Cancel' button to exit.