Get vertex position from nClothShape.OutputStartMesh

brandaosa
Enthusiast
Enthusiast

Get vertex position from nClothShape.OutputStartMesh

brandaosa
Enthusiast
Enthusiast

I know I can plug an object (i.e.:  "Cube2") and just use its shape node's inMesh attribute plugged to nClothShape1.outputStartMesh. Then I can get vertex[3] position from Cube2 using:

 

pointPosition -world pCube2.vtx[3]

 

I was wondering a way to skip creating an object just to use its Shape to grab a vertex which is already in nClothShape node. I was wanting something like:

 

pointPosition -world  ( nClothShape1.outputStartMesh as shape ) .vtx[3];

 

what is the right approach?

 

 

 

 

 

 

 

 

Reply
312 Views
0 Replies
Replies (0)