# Script to load a file and alter the molecule to CPK # the file to be loaded is called mol.xyz # type "play "basic_script" # # Display settings # set the background colour # all atoms same size=orthographic depth=perspective # turn off the depth shading # turn off the axes color Display Background iceblue display projection Orthographic display nearclip set 0.000000 display farclip set 10.000000 display depthcue off axes location off # # read in new molecule mol new mol.xyz type xyz # # deleate top rep ( as it automatically starts up with a lines rep) mol delrep 0 top # # For a simple molecule: # # For a standard CPK representation # add cpk rep to everything # CPK is VDW and bonds # sphere_scale=1.1 bond_radius=0.3 sphere_res=20 bond_resolution=16 # select colours material # apply the changes mol selection {all} mol representation CPK 1.100000 0.300000 20.000000 16.000000 mol color Name mol material Opaque mol addrep top # # set specific atom colours and size # do this by changing colour redrawing the item # must do it for each item individually # all items will be this colour until the colour is changed again # colorID0=blue # colorID1=red # colorID2=grey # colorID7=green # colorID8=white # this is only added OVER the existing representation mol selection {name C} mol representation CPK 1.100000 0.300000 20.000000 16.000000 mol color ColorID 2 mol addrep top #