Cumulative rotations + random rotations + random scale

   1213   3   1
User Avatar
Member
4 posts
Joined: March 2015
Offline
Hello.

I'm trying to copy a set of objects to each point on a simple circle. These are the things I need to do:
-For each copy, I need it to be rotated 55 in Y, and each copy would be rotated cumulative: first 55, second 110, etc.
-For each copy, after this rotation is applied, apply some small random rotations.
-Lastly, for each copy, change the scale. I did this already with a attribute randomize and is working as intended:


I think I have a core problem because I could do this in Python in Maya easily, but Im struggling to do it in Houdini.

Any input would be appreciated.

Thanks.

Attachments:
screenshot.png (912.3 KB)

User Avatar
Member
4 posts
Joined: July 2008
Offline
“For each copy” — actually, you already know the answer!
In Houdini, you just need to choose the appropriate for-each method to solve your problem.
[www.sidefx.com]
User Avatar
Member
4 posts
Joined: March 2015
Offline
ttking
“For each copy” — actually, you already know the answer!
In Houdini, you just need to choose the appropriate for-each method to solve your problem.
[www.sidefx.com]
I've been trying loops but I don't get anything from them. Meaning, I've been following the basics of them but it seems like Im missing a key element because there is no change.
User Avatar
Member
9386 posts
Joined: July 2007
Offline
Its all about attributes on your points

You can use Polyframe or Orient Along curve on your circle to compute v@N v@up or p@orient attribs based on normal and tangent directions of the circle
(Or create custom p@orient based on @ptnum if you want it to be accumulated but not in a way that results in tangent alignment)

You can also create additional p@rot attribute for additional rotation offset

Here is the list of all attributes Copy will recognize and also the order in which they are combined to full transform that will be used
https://www.sidefx.com/docs/houdini/copy/instanceattrs [www.sidefx.com]
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links