11.07.2015 Views

VMD User's Guide

VMD User's Guide

VMD User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• set colorupdate(molid, rep, onoff): These two commands let you turn on/off automaticupdating of the color for a given rep. Automatic updating means the color for the repwill be recalculated every time the coordinate frame of the molecule changes; this is usefulfor coloring by Position or User.• get smoothing(molid, rep):• set smoothing(molid, rep, n): These two commands let you get/set on-the-fly smoothingof molecular representations. Atom coordinates used to draw the given rep will besmoothed with a moving average window size of 2n − 1.• get scaleminmax(molid, rep):• set scaleminmax(molid, rep, min, max):• reset scaleminmax(molid, rep): Get/set the color scale range for this rep. Normally thecolor scale is automatically scaled to the minimum and maximum of the corresponding rangeof data. This command overrides the autoscaled values with the values you specify. Omitthe min and max arguments to get the current values. Use reset scaleminax to rescale thecolor scale to the maximum range again.• get visible(molid, rep):• set visible(molid, rep, onoff): These two commands let you show or hide a selectedmolecular representation, and retrieve the visibility status of a given rep.9.5.11 renderPython operations available from the render module, used to export the scene to a file that can beread by external rendering programs.• listall(): Return a Python list of the names of all supported rendering methods. One ofthese should be the first argument to the render() operation below.• render(method, filename): Using the the given rendering method, export the currentscene to the file filename. method should be one of the values returned by listall().9.5.12 transPython operations available from the trans module, used to change the view of the rendered scene.• rotate(axis, angle): Rotate the scene about the specified axis by the given angle. axisshould be ’x’, ’y’, or ’z’; angle is measured in degrees.• translate(x, y, z):Translate the scene by the given x, y, and z values.• scale(factor):Scale (zoom) the scene by the given factor.• resetview(molid): Sets the center, scale, rotation for all molecules so that the viewpointis centered on the molecule with the given id.• get center(molid):141

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!