Difference between revisions of "Split Movement"

From PyMOLWiki
Jump to: navigation, search
m (Replaced "load" by "fetch")
m (Second try to replace load by fetch, without destroying links)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
== Overview ==
 +
Moves two parts of one object into different directions.
 +
 +
== Source Code ==
 
<source lang="python">
 
<source lang="python">
 
fetch 1FJ1, async=0
 
fetch 1FJ1, async=0
 +
 +
# split object
  
# split object
 
  
 
create anti=(chain F)  
 
create anti=(chain F)  
Line 33: Line 38:
 
</source>
 
</source>
  
[[Category:Scripting_Script_Library|Split Movement]]
+
[[Category:Script_Library|Split Movement]]
 +
[[Category:ObjSel_Scripts]]

Latest revision as of 05:26, 5 August 2010

Overview

Moves two parts of one object into different directions.

Source Code

fetch 1FJ1, async=0
 
# split object


create anti=(chain F) 
create fab=(chain A,B)

# delete original object
delete 1FJ1

# color objects
color green,fab
color pink,anti

# color interface
select inter = (byres ((fab within 5 of anti)\
   or (anti within 5 of fab)))

color yellow,inter

# splay apart
orient
origin fab
rotate y,60,fab
origin anti
rotate y,-60, anti

# zoom interface region
zoom inter
show sph,inter
disable inter