Message 1 of 1
How can I get vertices to follow while playing animation?

Not applicable
02-26-2020
04:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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. ^^ *