This is a read-only mirror of pymolwiki.org

Difference between revisions of "Create"

From PyMOL Wiki
Jump to navigation Jump to search
m
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
===DESCRIPTION===
 
===DESCRIPTION===
+
'''create''' creates a new molecule object from a selection.  It can also be used to create states in an existing object.
  "create" creates a new molecule object from a selection.  It can
+
'''NOTE''': this command has not yet been throughly tested.  
  also be used to create states in an existing object.
+
 
 
  NOTE: this command has not yet been throughly tested.
 
 
 
===USAGE===
 
===USAGE===
 
<source lang="python">
 
<source lang="python">
 
create name, (selection) [,source_state [,target_state ] ]
 
create name, (selection) [,source_state [,target_state ] ]
 +
create name = (selection) [,source_state [,target_state ] ]    # (DEPRECATED)
 +
</source>
 +
 +
* 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)
  
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)
 
</source>
 
 
 
===PYMOL API===
 
===PYMOL API===
<source lang="python">  
+
<source lang="python">
  cmd.create(string name, string selection, int state, int target_state,int discrete)
+
cmd.create(string name, string selection, int state, int target_state,int discrete)
 
</source>
 
</source>
  
 
===NOTES===
 
===NOTES===
+
If the source and target states are zero (default), all states will be copied.  Otherwise, only the indicated states will be copied.
  If the source and target states are zero (default), all states will
+
 
  be copied.  Otherwise, only the indicated states will be copied.
 
 
 
===SEE ALSO===
 
===SEE ALSO===
+
[[Cmd load|load]], [[Cmd copy|copy]]
  [[Cmd load|load]], [[Cmd copy|copy]]
 
  
  
Line 37: Line 29:
  
  
[[Category:Commands|create]]
+
[[Category:Commands|Create]]
 +
[[Category:States|Create]]

Revision as of 13:42, 20 June 2009

DESCRIPTION

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.

USAGE

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)

PYMOL API

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

NOTES

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

SEE ALSO

load, copy


User Comments/Examples