Focus a specific unit/residue by ID from an external application
See original GitHub issueHello, I would like to embed the molstar viewer into a React application. It should be able to load a pdb source and then focus a specific residue by its generated name (for example “MEL 63” or “CYS 94”). This is basically the same behavior that is achieved by clicking on the sequence ui on one of the letters. The embedding of the viewer itself and the loading of the pdb works, thanks to your exposed viewer class, however I have problems understanding how to resolve the ID to a Loci, in order to focus it via
viewer.plugin.managers.camera.focusLoci(loci)
.
I would be grateful for any hints.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Correct way (in .NET) to switch the focus to another application
It has two problems. Some people have told me that SwitchToThisWindow is deprecated. If application B is minimized, this function silently fails from...
Read more >Ensure that application windows become focused - Power ...
To verify that the Focus window action can't bring a specific window to focus, send some keystrokes using the Send keys action.
Read more >Solved: How can I set the focus on an external application
Solved: Hi, I'm activating an external .exe application through Labile. When the application is activated a GUI is opened and I can ...
Read more >Person Identifiers for External Applications - Oracle Help Center
A person identifier captures third-party payroll identifier or the time device badge identifier details from an external application for a person or an ......
Read more >Set Focus - UiPath Documentation Portal
SetFocus Sets keyboard focus to a specified UI element. ... Applying Themes to Custom Activities ... How to retrieve object IDs. Activities.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, thanks for all your help, I tried another approach, and this works for me, I post it here in case someone stumbles across similiar problems
The missing piece was
let assembly = viewer.state.select(StateSelection.Generators.ofType(PluginStateObject.Molecule.Structure))[0]
which selected the right node for me
@ydzdfci I will adress your issue in #122