rotate before orient

   1685   4   1
User Avatar
Member
3 posts
Joined: Sept. 2020
Offline
Hi, I'm trying to build a digital asset. Basically I got what I wanted in first and second pic. But when I try to add variation with randomizing rotation in y axis the result I'm getting in second input on switch node brokes (third pic). I understand why this is happening but I have no idea how to do it differently. Any help appreciated and sorry for my English.
Edited by donigorlami - Sept. 15, 2022 08:52:18

Attachments:
1.png (3.7 MB)
2.png (3.6 MB)
3.png (3.6 MB)

User Avatar
Member
8538 posts
Joined: July 2007
Offline
Post a hip file

But essentially
- if the orient along curve is outputting only N in rolled bitangent direction, then make your Randomize_y_rot output random v@up vector in xz plane

- if orient along curve is outputting full p@orient then append your randomize_y_rot and make it rotate incoming p@orient around it's local axis of your choice by random amount
Edited by tamte - Sept. 16, 2022 00:39:56
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
3 posts
Joined: Sept. 2020
Offline
Hey tamte. this is the hip file. I replaced assets with tube to make it easier.

Attachments:
CopyAlongCurveS.hipnc (296.2 KB)

User Avatar
Member
8538 posts
Joined: July 2007
Offline
I see you are using p@rot for additional orientation
you can do that however p@rot is applied after p@orient, so you may need to swap them
make your randomize_y_rot create p@orient
and orientation along curve create p@rot

Attachments:
CopyAlongCurveS_fix.hipnc (296.6 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
3 posts
Joined: Sept. 2020
Offline
this is very helpful. thank you very much.
  • Quick Links