nglviewer / nglview

Jupyter widget to interactively view molecular structures and trajectories
http://nglviewer.org/nglview/latest/
Other
823 stars 134 forks source link

How to load both surface point and protein at the same time? #1089

Closed smiles724 closed 11 months ago

smiles724 commented 11 months ago

Hi, I want to change the color of the loaded protein. However, it seems this commend ' view.add_representation('cartoon', color='blue')' is not working. Can you please give me some help? Thanks

image

image

hainm commented 11 months ago

@smiles724 Please try to add component=1 to your add_representation, the default is the first component and you're trying to update 2nd one.

smiles724 commented 11 months ago

@smiles724 Please try to add component=1 to your add_representation, the default is the first component and you're trying to update 2nd one.

Thanks for your reply!