From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Mon Dec 16 2019 - 13:50:25 CST

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.

axel.

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

> Hi,
>
> 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?
>
> Davood
>
>
>
>

-- 
Dr. Axel Kohlmeyer  akohlmey_at_gmail.com  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.