From: Gianfranco Abrusci (gianfranco.abrusci_at_unitn.it)
Date: Tue Nov 26 2019 - 04:20:29 CST

Hi Edward,
although it does reply directly to your question, you can turn the logging
on with `log console` (or `log filename`) to keep record of what you do
with the user interface. The command associated with each action you
perform is then written in the Tk Console (or in the filename you
specified), even the opening of a pop-up windows.
`log off` to stop recording the commands.

In particular, to change the bond resolution in CPK representation you
should use:
`mol modstyle 0 0 CPK 1.000000 0.300000 12.000000 <yourBondRes>`

I hope it's useful.
Gianfranco

Il giorno mar 26 nov 2019 alle ore 11:10 Edward Ditler <edward.ditler_at_uzh.ch>
ha scritto:

> Hello,
>
> I am trying to set the representation of my molecule programmatically. For
> many parts of the visualization, search engines manage to come up with the
> commands I’m looking for. Still I’m looking for a way to retrieve all
> possible arguments some of the functions take.
>
> If I try to set the bond resolution of my CPK rep, for example, the
> command will look something like
>
> ```
> vmd > mol modstyle 0 0 BondResolution 100
> ERROR) Unknown atom representation command 'BondResolution 100‘.
> ```
>
> Now is there some command like `mol modstyle list` to get a list of all
> acceptable commands? The documentation at
> http://www.ks.uiuc.edu/Research/vmd/current/ug/node140.html unfortunately
> doesn’t say more than
>
> • modstyle rep_number molecule_number rep_style: Change the current
> rendering method (style) for the given representation in the specified
> molecule.
>
> and doesn’t state which values rep_style can take.
>
>
> Thanks for your help!
>
> Best regards,
>
> Edward Ditler
> ---
> University of Zurich
> Edward Ditler
> Department of Chemistry B
> Research Group Luber
> Winterthurerstrasse 190
> CH-8057 Zurich
>
> Office: Y34-F92
> Phone: +41 44 635 46 43
> E-Mail: edward.ditler_at_chem.uzh.ch <edward.ditler_at_chem.uzh.ch>
>
>

-- 
Gianfranco Abrusci