selection:user-defined_properties

User-defined Properties

“p.” or properties['<property-name>'] in alter, iterate, iterate_state, or alter_state commands can access or set user-defined properties that are atom-level (alter/iterate) or atom-state level (iterate_state/alter_state). atom-state means that these settings are set for a specific atom in a specific state.

Examples

# set a property for each atom:
alter_state 1, all, p.xy = x + y
# creates a selection foo that includes only atoms with x+y < 50
select foo, p.xy < 50

Notes

In the selection language, only the “p.” notation is supported.

See Also

selection/user-defined_properties.txt · Last modified: 2015/02/03 04:23 by holder