Frieda Reichsman wrote: > > On Aug 26, 2007, at 11:33 PM, Bob Hanson wrote: > >> >> draw $line1 $line2 #object not named; will be a line from center of >> $line1 to center of $line2 >> > > It looks to me like this is a command to create the draw object. What > I was thinking was not to use the $ when creating the object - only > when it is referred to later. > well, it can't be distinguished, I think.
draw $line1 translucent green has to produce a point at the center of $line1, not just define it. That's because providing an ID is always optional. So in this case, where no object name is given, the most recently created or named object is assumed, and it is turned into a point at the center of $line1. draw line1 translucent green includes the ID, so it presumes the existance of line1 and then just sets the already created line1 to translucent green, like the COLOR command. My point is simply that there actually is a use for both, at least in the context of draw, and the set of object-creating commands (draw, pmesh, isosurface) all use the same syntax, so even though it might seem reasonable to allow isosurface $xxx .... I'd prefer to keep all the commands the same, using the same logic -- in the command itself, as the very first parameter, added simply to identify the object, use no $; elsewhere use $. Bob > >> >>>> color atoms green >>>> color $someObject yellow >>>> >>>> center (atomno=3) >>>> center $someDrawObject >>>> >>>> draw line1 (atomno=3) (atomno=4) >>>> draw line2 (atomno=5) (atomno=7) >>>> draw line3 $line1 $line2 >>>> >>>> center $line3 >>>> >>>> isosurface mySurface select(model=1.2) molecular >>>> >>>> color $mySurface blue >>>> >>>> That sort of thing. >>>> >>>> Bob >>> >>> >>> > > /////////////////////////////////////////// > > > Frieda Reichsman > > Molecules in Motion > > Interactive Molecular Structures > > http://www.moleculesinmotion.com > > > /////////////////////////////////////////// > > > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. >Still grepping through log files to find problems? Stop. >Now Search log events and configuration files using AJAX and a browser. >Download your FREE copy of Splunk now >> http://get.splunk.com/ > >------------------------------------------------------------------------ > >_______________________________________________ >Jmol-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jmol-users > > -- Robert M. Hanson 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

