[chimerax-users] Removing text labels generated with command distance
Eric Pettersen
pett at cgl.ucsf.edu
Mon May 16 15:49:51 PDT 2022
Your script will work in tomorrow's daily build.
--Eric
> On May 14, 2022, at 11:57 PM, Shubham Devesh Ramgoolam via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>
> Hi,
> I hope you are doing well.
> I have a python script, to be executed in nogui mode, which does the following:
> -open a pdb file
> -define centroids for specific residues
> -draw pseudobonds between specific residues -> I am using the command distance for this purpose
>
> The issue arises when I have to save the session (.cxs) when in nogui mode, I am getting this error:
> QGuiApplication::font(): no QGuiApplication instance and no application font set.
>
> I believe it is because of the text labels created by the command distance. So, I included the following in my code: run(session, ‘hide #2.*’) and I can now save the session.
>
> I noticed in the model panel that the pdb file is assigned to #1 and the pseudobond to #2. The text labels are created as a submodel of the pseudobond (so #2.1, 2.2,..), hence why the ‘hide #2.*’
>
> Will this fix always work? Is the model assignment also dependent on the pdb file being opened?
>
> Regards,
> Shubham
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
>
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu <mailto:ChimeraX-users at cgl.ucsf.edu>
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users <https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20220516/bb4ab27e/attachment.html>
More information about the ChimeraX-users
mailing list