From: Norouzi, Seyed (
Date: Mon Dec 16 2019 - 14:25:58 CST

Thanks. Adding that one line "mol new" worked.

From: Axel Kohlmeyer <>
Sent: Monday, December 16, 2019 2:50 PM
To: Norouzi, Seyed <>
Cc: <>
Subject: Re: vmd-l: vmd draw material affects previous drawings

Caveat, this is a guess, since i don't have the time and machine available to test this:
If I remember correctly, there is only one material assignment for all script added graphics objects per molecule.
So to work around this limitation, you would have to create an additional (empty?) molecule (see the "atoms" option of the molecule command) and make sure its transformation and viewpoint matrices and settings are identical, so that the coordinates and representation are properly aligned and thus also the graphics objects.


On Mon, Dec 16, 2019 at 2:23 PM Norouzi, Seyed <<>> wrote:

I would like to draw more than one object in vmd. The objects have different material properties. Example:

draw color 8; draw material Ghost; draw cylinder {0 0 -265.52} {0 0 265.52} radius 292.48 resolution 100 filled no
draw color 6; draw material Opaque; draw sphere {0 0 0} radius 135 resolution 150

When I run the second command the material type for the first object changes to Opaque too!

How to fix this issue?


Dr. Axel Kohlmeyer<>>
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.