Digipiction
April 2, 2014 10:36:09
Caution: Absolute Houdini beginner here.
I'm looking for the proper workflow for the following: I want to create copies of an object by specifying values: position, rotation and scale. I want to calculate these values using an input object.
So to give an example, let's say I want to copy an object onto the center point of the lowest edge of each polygon of another object, how would I do that?
To give pseudo code:
posarray =
For each polygon of template_object:
Find lowest edgePos.Y
posarray.append(edgePos)
Copy input_object to posarray
Platon
April 2, 2014 11:18:39
Hi, Chris,
take a look at hip, is this what you're after?
Netvudu
April 2, 2014 11:35:37
oooh….heheh.I like it a lot, owl. Frankly, I think 99% of the users nowadays would use the ForEach method.
In fact, usually the ForEach tends to be slower, but in this case the old school method is the slowest one (according to the Performance Monitor, Foreach is almost twice as fast in this case)
Digipiction
April 2, 2014 15:05:03
Thank you, this does exactly what I meant.
I will take a closer look at it and try to figure out what all the nodes do and how they work, but I think I'll have some followup questions later :-)
But thanks again, this has already been very helpful!