Show as surface#

import molsysmt as msm
from molsysmt import pyunitwizard as puw
import nglview as nv
import numpy as np
molsys = msm.convert(msm.systems['chicken villin HP35']['chicken_villin_HP35.h5msm'])
view = msm.view(molsys)
view.clear()
msm.thirds.nglview.show_as_surface(view, selection='group_index in [0,1,2]')
view
view = msm.view(molsys)
view.clear()
msm.thirds.nglview.show_as_licorice(view, selection='all')
msm.thirds.nglview.show_as_surface(view, selection='group_index in [0,1,2]')
view
view._ngl_msg_archive[-1]
{'component_index': 0,
 'target': 'compList',
 'type': 'call_method',
 'methodName': 'addRepresentation',
 'reconstruc_color_scheme': False,
 'args': ['surface'],
 'kwargs': {'sele': '@0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41',
  'opacity': 0.3,
  'color': 'lightblue',
  'useWorker': False}}