Author: bugman Date: Tue Jul 1 16:46:08 2014 New Revision: 24379 URL: http://svn.gna.org/viewcvs/relax?rev=24379&view=rev Log: Fix for the pymol.frame_order user function. The representation function for the rotor objects was hiding all parts of the representation, hence the pivot labels where being hidden. To fix this, the hiding of the geometric object now occurs in the base frame_order_geometric() function prior to setting up the representations for the various objects. 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=24379&r1=24378&r2=24379&view=diff ============================================================================== --- branches/frame_order_cleanup/pipe_control/pymol_control.py (original) +++ branches/frame_order_cleanup/pipe_control/pymol_control.py Tue Jul 1 16:46:08 2014 @@ -381,6 +381,11 @@ # The object ID. id = file_root(file) + # First hide everything. + pymol_obj.exec_cmd("select %s" % id) + pymol_obj.exec_cmd("hide ('sele')") + pymol_obj.exec_cmd("cmd.delete('sele')") + # Set up the pivot points. represent_pivots(id=id) @@ -656,11 +661,6 @@ if id == None: raise RelaxError("The PyMOL object ID must be supplied.") - # First hide everything. - pymol_obj.exec_cmd("select %s" % id) - pymol_obj.exec_cmd("hide ('sele')") - pymol_obj.exec_cmd("cmd.delete('sele')") - # Rotor objects: Set up the rotor axis. pymol_obj.exec_cmd("select (%s & resn RTX)" % id) pymol_obj.exec_cmd("show stick, 'sele'")