vmd.molrep.
repindex
Get the index of a representation from its name
(int) – Representation index, or None if no such representation