playMaker

Author Topic: 'Get/Set Vertex Pos' Action - for Playmaker  (Read 3232 times)

Drakon

  • Playmaker Newbie
  • *
  • Posts: 21
'Get/Set Vertex Pos' Action - for Playmaker
« on: July 29, 2011, 04:33:29 AM »
(This is a copy from the requested actions, but I'm also in need of some timely assistance on it at the moment, so I'm including it in the Help section.)

Hi all, I've been really enjoying using Playmaker but have come to a stumbling block on this one thing.

I'd like to be able to access a specific vertex (set of verices) in a mesh and get its xyz so that I can instantiate/copy a game object on to it. I've been trying to figure out how to do this with code - but I'm not a coder unfortunately.

I understand that the mesh filter has to be accessed, build and array of vertices, expose them to Playmaker which calls them in, stores the indexed vertex in a vector3 variable. But how!? I'm really needing this action to complete a project within 2 weeks and I'll look into whatever instructions I need to work this out But there is so much info out there and it all feels disconnected to me.

Is there any chance someone who likes this kind of challenge and could make either an example script or video showing how external scripts can expose data for Playmaker to use? (and override in turn eventually - i.e how can I move vertices with Playmaker action? )

I'm sure this feature will come in handy for other gamers too.

This would be very much appreciated!
Thank you ahead of time
Drakon

« Last Edit: July 29, 2011, 05:29:20 AM by Drakon »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: 'Get/Set Vertex Pos' Action - for Playmaker
« Reply #1 on: August 03, 2011, 10:07:45 PM »
Hi Drakon,

I posted a couple of Mesh actions here: http://hutonggames.com/playmakerforum/index.php?topic=542.msg2121#msg2121

Let me know how you get along with these...

-Alex

Drakon

  • Playmaker Newbie
  • *
  • Posts: 21
Re: 'Get/Set Vertex Pos' Action - for Playmaker
« Reply #2 on: August 14, 2011, 03:50:23 PM »
Thank you very much Alex. Sorry didn't reply earlier - just saw the post (and have enabled notify of replies).

The action is much needed and appreciated. I'm hoping it will help me control the line renderer and its vertex/elements xyz/rot/scale as well as instantiate game objects along the array. I'll test it out a let you know how it goes soon. Thanks again.

Drakon