[chimera-dev] S3D extension
Dougherty, Matthew T
matthewd at bcm.edu
Wed Mar 19 23:13:26 PDT 2014
Now that I am working on a similar problem it may have a similar solution to the previous email.
Specifically I am trying to add an extension to control eye seperation in animations.
using the icosahedron extension as a reference, I figure I need to make a similar gui call in def set_s3d(es), and change the gui to the camera tab.
# -----------------------------------------------------------------------------
#
def change_s3d(start, last, step):
range = (start, last, step)
import Transition
Transition.show_transition(set_s3d, range)
# -----------------------------------------------------------------------------
#
def set_s3d(es):
import Transition
Transition.show_label('eye separation', 'r = %.0f' % es)
import Icosahedron.gui
d = Icosahedron.gui.icosahedron_dialog()
if d:
d.radius.set_value(es)
# -----------------------------------------------------------------------------
#
import Transition
arg_specs = (('es1', float),
('es2', float),
('frames', int))
add_transition_command('s3d',
change_s3d,
arg_specs,
None, None)
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
Matthew Dougherty
National Center for Macromolecular Imaging
Baylor College of Medicine
________________________________________
From: Dougherty, Matthew T
Sent: Thursday, March 20, 2014 12:20 AM
To: chimera-dev at cgl.ucsf.edu
Subject: screen width
I would like to set and get the parameter screen width. can you advise on the proper way?
thx
Matthew Dougherty
National Center for Macromolecular Imaging
Baylor College of Medicine
More information about the Chimera-dev
mailing list