Difference between revisions of "Create"

From PyMOLWiki
Jump to navigation Jump to search
Line 23: Line 23:
===SEE ALSO===
===SEE ALSO===
[[Cmd load|load]], [[Cmd copy|copy]]
[[Cmd load|load]], [[Cmd copy|copy]], [[Extract]]
=== User Comments/Examples ===
=== User Comments/Examples ===

Revision as of 10:32, 11 February 2013

create creates a new molecule object from a selection. It can also be used to create states in an existing object. NOTE: this command has not yet been throughly tested.


create name, (selection) [,source_state [,target_state ] ]
create name = (selection) [,source_state [,target_state ] ]    # (DEPRECATED)
  • name = object to create (or modify)
  • selection = atoms to include in the new object
  • source_state (default: 0 - copy all states)
  • target_state (default: 0)


cmd.create(string name, string selection, int state, int target_state,int discrete)


If the source and target states are zero (default), all states will be copied. Otherwise, only the indicated states will be copied.


load, copy, Extract

User Comments/Examples