Profile
Name: |
Sphered ligand mutate |
ID: |
9519 |
Created on: |
Sat, 08/28/2010 - 09:34 |
Updated on: |
Sat, 08/28/2010 - 16:34 |
Description: |
Selects only segments which are close enough to the ligand and mutates them, making mutating faster. |
Best For
Comments
|
| | |
|
Want to try?
Add to Cookbook!
To download recipes to your cookbook, you need to have the game client running.
| |
| | |
| | |
|
function select_ligand_sphere(Distance)
print("Selecting sphere around ligand. Distance:",Distance)
local Distance=Distance
local NumSegs=get_segment_count() -- get number of all segments, last index is ligand
local LastSeg=NumSegs-1 -- last segment to check
local k
for k=1,LastSeg do
local ADistance=get_segment_distance(k,NumSegs)
if ADistance<=Distance then
print("Index ",k," is close enough. Dist:",ADistance)
select_index(k)
end -- if
end -- k loop
end -- function
deselect_all()
select_ligand_sphere(15)
do_mutate(1)