each of these isosurfaces is going to need its own ID. I would recommend using DRAW rather than ISOSURFACE here.

 for (var i IN {_P}) { isosurface ID @{"i"+i.atomIndex} center @i sphere 2.5}

better:

 for (var i IN {_P}) { draw ID @{"d"+i.atomIndex} width 5.0 @i}

unless those need to be meshes.

another option is geosurface:

select _P
geosurface 2.5




On Wed, Jan 29, 2014 at 2:41 PM, Spinney, Richard <rspinney@chemistry.ohio-state.edu> wrote:

I am trying to draw a sphere around a subset of atoms in a structure and have tried the following command;

for (var i IN [_P]) { isosurface myiso sphere 2.5} (also tried for (var i IN {_P}) { isosurface myiso sphere 2.5} and select *.P; for (var i IN {selected}) { isosurface myiso sphere 2.5}))

which draws a single sphere at a point other than the selected atom type rather than drawing a sphere around all P. Is this a bug or am I missing something?

 

Thanks, Rick

--------------------------------------

Dr. Richard Spinney

Department of Chemistry and Biochemistry

The Ohio State University

120A Celeste Laboratory

120 West 18th Ave

Columbus, Ohio 43210

 

email: rspinney@chemistry.ohio-state.edu

 

Phone:   (614) 247 - 6847

Fax:       (614) 292 - 1685

 


------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900