import maya.cmds as cmds
for i in range(30):
pos = cmds.pointPosition(‘pCylinder2.vtx[40]’, w=1)
cmds.select(‘pCylinder1.vtx[41]’)
cmds.move(pos[0], pos[1], pos[2], ws=1)
cmds.setKeyframe()
cmds.currentTime( i+1, update=False, edit=True )
I want pCylinder1.vtx [41] to follow pCylinder2.vtx [40]. But it doesn’t work as I planned. If there is another approach, I would like to suggest. Thanks for reading. And have a good night. ^^ *