[MEL] Get inPositionPP from MASH Node to Array


#1

Hi,

ich want to get point positions from MASH Network to array. MASH_Waiter node has already an output -> translateInPP.inPositionPP. You can see that in attachment screenshot.

(GRID1 is a MASH_Waiter Node)

If i run this code:

getAttr  -type  GRID1.translateInPP.inPositionPP

I get all positions so:
// Result: -980 700 60 -840 700 60 -700 700 60 -560 700 60 -420 700 60 …

But if i get this to an array like so:

vector $pnts[] = `getAttr GRID1.translateInPP.inPositionPP `;

I have get an Error.
// Error: vector $pnts[] = getAttr GRID1.translateInPP.inPositionPP; //
// Error: Line 1.14: Invalid redeclaration of variable “$pnts” as a different type. //

How can i get the Positions from MASH Node to an Array.
Can you help me?

Thanks
Kadir