Skip to content

How to set initial visibility of a component to hidden #63

@gsblendorio

Description

@gsblendorio

Let's say I build a structure with a protein and ligand component:

const model = builder
   .download({ url: "https://www.ebi.ac.uk/pdbe/entry-files/1cbs.bcif" })
   .parse({ format: "bcif" });
const structure = model.modelStructure()
// Create protein representation
structure.component({ selector: "protein" }).representation().color({ color: "blue" })
// Create ligand representation
structure.component({ selector: "ligand" }).representation().color({ color: "red" })

Is there a way to build the components with their representations, but have the initial visibility of the ligand be hidden?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions