Profile
- Name
- Freeze for Susume
- ID
- 103432
- Shared with
- Public
- Parent
- None
- Children
- Created on
- April 20, 2020 at 10:41 AM UTC
- Updated on
- April 20, 2020 at 10:41 AM UTC
- Description
Freezes all helixes and sheets except for one segment next to every loop.
Best for
Code
for i = 2, (structure.GetCount() - 1) do
if not structure.IsLocked(i) then
if structure.GetSecondaryStructure(i) == "E" or structure.GetSecondaryStructure(i) == "H" then
if structure.GetSecondaryStructure(i-1) ~= "L" and structure.GetSecondaryStructure(i+1) ~= "L" then
selection.Select(i)
end
end
end
end
freeze.FreezeSelected(true, false)
selection.DeselectAll()