CHOPS - "pivoting" a channel

   847   2   2
User Avatar
Member
12457 posts
Joined: July 2005
Offline
Hi all,

Does anyone know of a good way to swap axes of a CHOP channel? My curve happens to be monotonically increasing, so it should pivot without ambiguity.

Cheers!
Jason
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
8540 posts
Joined: July 2007
Online
I've done it in the past using VEX arrays, mostly for the needs of inverting timewarp curves

- sampling the whole channel into frame and value arrays
- swapping them
- and then sampling back to CHOP channel using spline() function

it's a bit involved as to make it robust you have to take sample rate and fps into account
however I'd also appreciate if there was a CHOP node for that
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
12457 posts
Joined: July 2005
Offline
Hi Tomas,

Yeah, that's precisely the use case. Usually we simply invert them at the time of reading them from disk, but when you find yourself wanting to edit and otherwise manipulate them, it's nice to be able to invert them ad hoc.

I haven't tried it with VEX arrays yet; maybe I'll play around it with that.
Ah yeah, a native CHOP operation would be nice.
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
  • Quick Links