Group Abstract Group Abstract

Message Boards Message Boards

3D rotate a MoleculePlot3D

Posted 3 months ago
3 Replies

Probably simplest:

Tour3DVideo[MoleculePlot3D[Molecule["NC(=O)C[C@H](C(=O)O)N"],SphericalRegion->True]]
POSTED BY: Vitaliy Kaurov

Perfect! I did not know about this function - always something new to explore in Wolfram Language. Thanks Vitaliy!

Robert,

maybe this is what you are trying to achieve:

videoList = 
  With[{obj = PolyhedronData["Icosahedron"]}, 
   Table[Show[obj, SphericalRegion -> True, ViewVector -> {5 Cos[t], 5 Sin[t], 5}], {t, 0, 2 Pi, .05}]];
Export["rotmol.gif", videoList, "DisplayDurations" -> .05]
POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard