Improvements in Apex a46

The selection property of a document is now working as expected. This means one can set the selection with a command like this:

set the selection of document 1 to {34, 46, 47, 49, 56}

Which will select 5 ions, or clear the selection with

set the selection of document 1 to {}

The ‘select particles in sphere’ verb is implemented as part of the RDF plugin, and the export rdf command is working from a script as well:

tell document 1
set the selection 1 to {}
select particles in sphere centered at {0,0,100} with radius 10
export rdf saving in (“Macintosh HD:my folder” as alias) filename “rdf” relative to atomtype 2 total bins 500 radial cutoff 20
end tell

When importing a POS file, the selection is now correctly set to nil.

‘get coordinates of ion n’ now works as a shorthand for ‘get {x coordinate, y coordinate, z coordinate} of ion n’

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


%d bloggers like this: