[Closed] Particle Flow Scripting – Move to target mesh vertices
Hi folks,
I’m in a bit of stress over here, as I can’t find out what I want to do with PF.
Basically, I have a few particles falling down, bouncing onto the floor and after an age test I want each of them them to fly to one vertex of a target mesh each.
I can get it to work halfway, by chamfering the vertices and deleting the faces in between, but some of the particles share the same position when using the Find Target Operator, leaving other positions blank.
(I’ve got 20 particles and 20 places, yet 6 of them are free)
So basically I need a “Find Target” Operator which can “find” vertices and a unique one for each vertex., Preferrably with working inter particle collision, but not neccessarily. Does anybody have any good tips for me where to start?
So I already did some research and must admit, that although I try my best at scripting, particles are a little out of hand for me. Especially, as cg-academy is down and I cannot get my hands on the “Pflow Script Show”. ;(
Because it seems Bobo addresses this exact issue there.
Point in this case doesn’t mean Vert…ie. say you have a 1×1 plane, you have 4 verts…FindTarget on this plane with 10 particles…they will find 10 random ‘place’ to land on the surface…Point does not mean Vertex
go here for a pretty good tute:
[VIMEO]102987786[/VIMEO]
and here’s what I’ve done to mimic it, basically it takes the Birth ID of a particle, say 1 to 10 (or could be starting from 0, I dunno…whatever)…it translates to…go to vert x on the target, based on your ID…
This guarantees uniqueness and you don’t have to bother with ‘chamfering’ your geo or whatever…
ps: I have all my ‘flows’ (not just Max, Houdini also) on the 2nd monitor in portrait mode…do you have any issues opening the file ?
Hey man, sorry for not having responded yesterday, but I was really busy all day long and when I cam home, I went to bed straight after having eaten.
You saved my day! Your sample scene worked like a charm, copying over the required stuff into my scene was a breeze and kudos to you for having saved the 2014 version, too!
Wish I could hand you a beer or something…
I have to admit, that I totally overlooked the data operator, I think I opened it up once or twice several years ago, but totally forgot about it. It’s about time getting familiar with it, I guess!
Thank you very much for your quick and precise help, have a nice weekend and everything!
glad it worked…
now i gotta confess, that’s the 1st time EVER i got into the DataOp…i reckon me fooling around with MCG hardened me up so i wasn’t fazed at all once i got in there…just nodes…connect them up…with the right type…voila…no longer DataOp virgin !