Olivier Thériault

olivierth

About Me

INDUSTRY
Film/TV

Connect

LOCATION
Canada

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Vex: rotate orient attribute? [{SOLVED]} July 23, 2024, 12:01 p.m.

No, its not from a copy to point. It's from someone's scene I don't fully understand. But the script to modify the "transform" intrinsic worked perfectly!

-Olivier

Vex: rotate orient attribute? [{SOLVED]} July 23, 2024, 11:02 a.m.

Ah! ok, got it. The trick was to use this on a primitive wrangle:
matrix3 m = primintrinsic(0, "transform", @primnum);
rotate(m, chf("rotate"), set(0,1,0));
setprimintrinsic(0, "transform", @primnum, m, "set");

That way, I start by reading the "transform" matrix from the primitive intrinsics. I rotate that matrix and finally I write the new matrix to override "transform".

Vex: rotate orient attribute? [{SOLVED]} July 23, 2024, 10:56 a.m.

Arg! I found how to rotate the @orient with this:

matrix3 m = ident();
rotate(m, chf("rotate"), set(0,1,0));
@orient = quaternion(m);

... but it wasn't rotating the geo in the viewport. It's an instance so I think I need to rotate the intrinsic "transform" instead. I'll try to figure this out..