Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

How can I get vertices to follow while playing animation?

How can I get vertices to follow while playing animation?

Anonymous
Not applicable
385 Views
0 Replies
Message 1 of 1

How can I get vertices to follow while playing animation?

Anonymous
Not applicable

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. ^^ *

0 Likes
386 Views
0 Replies
Replies (0)