Message 1 of 1
[MEL] Get inPositionPP from MASH Node to Array

Not applicable
04-06-2017
08:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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