Some general help on Copy Sop and attributes

   3338   3   1
User Avatar
Member
166 posts
Joined: March 2014
Offline
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
User Avatar
Member
99 posts
Joined: July 2007
Offline
Hi, Chris,

take a look at hip, is this what you're after?

Attachments:
copySop.hip (147.9 KB)

User Avatar
Member
304 posts
Joined: May 2006
Offline
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)
Javier Meroño
FX TD.
User Avatar
Member
166 posts
Joined: March 2014
Offline
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!
  • Quick Links