Profile
- Name
- Freeze Secondary Structures
- ID
- 103542
- Shared with
- Public
- Parent
- None
- Children
- Created on
- May 24, 2020 at 19:13 PM UTC
- Updated on
- May 24, 2020 at 19:13 PM UTC
- Description
Freeze all backbone segments that are not loops (i.e. Helixes, Sheets). Useful when you just idealized the SS, and do not want a wiggle or shake to mess it up.
Best for
Code
preSelected = {}
for i=1, structure.GetCount() do
if selection.IsSelected(i) then
preSelected[#preSelected+1] = i
selection.Deselect(i)
end
if (structure.IsLocked(i) == false) then
if (structure.GetSecondaryStructure(i) ~= "L") then
selection.Select(i)
end
end
end
freeze.FreezeSelected(true, false)
selection.DeselectAll()
for i=1, #preSelected do
selection.Select(preSelected[i])
end