Author: bugman Date: Thu Jul 3 15:44:41 2014 New Revision: 24435 URL: http://svn.gna.org/viewcvs/relax?rev=24435&view=rev Log: The PyMOL disable command is now used by the pymol.frame_order user function. This is to first disable all PyMOL objects prior to loading anything, to hide the original structures and any previous frame order representations, and then to hide all of the Monte Carlo simulation representations. This is to simplify the picture initially presented to the user while still allowing all elements to be easily found. Modified: branches/frame_order_cleanup/pipe_control/pymol_control.py Modified: branches/frame_order_cleanup/pipe_control/pymol_control.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/pipe_control/pymol_control.py?rev=24435&r1=24434&r2=24435&view=diff ============================================================================== --- branches/frame_order_cleanup/pipe_control/pymol_control.py (original) +++ branches/frame_order_cleanup/pipe_control/pymol_control.py Thu Jul 3 15:44:41 2014 @@ -335,6 +335,9 @@ if dir != None: path = dir + sep + # First disable everything, so that the original domain positions and structures and previous frame order results are not shown by default. + pymol_obj.exec_cmd("disable all") + # Set up the respective objects. if ave_pos: frame_order_ave_pos(root=ave_pos, path=path) @@ -363,6 +366,9 @@ # The object ID. id = file_root(file) + # Disable the MC simulation representation - the user can find this out for themselves. + pymol_obj.exec_cmd("disable %s_sim" % root) + def frame_order_distribution(root=None, path=None): """Display the PDB structure for the frame order distribution of domain positions. @@ -418,6 +424,11 @@ # Set up the cone object. represent_cone_object(id=id) + + # Disable the MC simulation representation - the user can find this out for themselves. + pymol_obj.exec_cmd("disable %s_sim" % root) + pymol_obj.exec_cmd("disable %s_sim_pos" % root) + pymol_obj.exec_cmd("disable %s_sim_neg" % root) def macro_apply(data_type=None, style="classic", colour_start_name=None, colour_start_rgb=None, colour_end_name=None, colour_end_rgb=None, colour_list=None):