nglviewer / nglview

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

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

Closed smiles724 closed 10 months ago

smiles724 commented 10 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 10 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 10 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!