You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to add arrows to an ASEstructure object, by connecting two atoms at positions c1 and c2.
def view_structure(structure,myvec=[]):
t = nv.ASEStructure(structure)
w = nv.NGLWidget(t, gui=True)
return w
myview = view_structure(myase_structure)
c1 = myase_structure.get_positions()[6]
c2 = myase_structure.get_positions()[5]
myview.shape.add_arrow(c1,c2,[0,0,0],0.3)
How can I do the same with the analogous ASETrajectory, making the arrow recalculating the c1 and c2 positions everytime I change the frame in the GUI?
I am able to add arrows to an ASEstructure object, by connecting two atoms at positions c1 and c2.
How can I do the same with the analogous
ASETrajectory
, making the arrow recalculating the c1 and c2 positions everytime I change the frame in the GUI?Thank you!
The text was updated successfully, but these errors were encountered: