[MEL] Get inPositionPP from MASH Node to Array

[MEL] Get inPositionPP from MASH Node to Array

Anonymous
Not applicable
785 Views
0 Replies
Message 1 of 1

[MEL] Get inPositionPP from MASH Node to Array

Anonymous
Not applicable

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 alls 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

 

0 Likes
786 Views
0 Replies
Replies (0)