how to convert chop overrides to channels with keyframes?
12197 11 4- DriesD
- Member
- 109 posts
- Joined: July 2005
- Offline
- andrewlowell
- Member
- 537 posts
- Joined: Dec. 2005
- Offline
Ouch don't think so, if the CHOP was fetched from a key-frame channel than you'd paste the original channel / keyframes but here's the problem.
Channels are vector's with keyframes / interpolation.
CHOPs are rasters built of samples.
Just like you can't easily create a vector image from a raster image, you really can't convert a CHOP to keyframes unless there was a very intelligent script of some sort to do it.
Channels are vector's with keyframes / interpolation.
CHOPs are rasters built of samples.
Just like you can't easily create a vector image from a raster image, you really can't convert a CHOP to keyframes unless there was a very intelligent script of some sort to do it.
- edward
- Member
- 7725 posts
- Joined: July 2005
- Online
- rafal
- Staff
- 1449 posts
- Joined: July 2005
- Offline
in some cases, you may be able to get away with RMB on the CHOP node and selecting “Edit Data Channels…” which will allow you to adjust the curve much like the keyframes. This locks the CHOP, so unocking it will loose the tweaks.
There is an hscript function ‘chrefit’ that does the same thing. So if you write a script that keyframes the parameter at every frame accodring to the chop value at that frame and then run ‘chrefit’ on that parameter, it will get you the keyframes.
There may be also some better ways…
Rafal
There is an hscript function ‘chrefit’ that does the same thing. So if you write a script that keyframes the parameter at every frame accodring to the chop value at that frame and then run ‘chrefit’ on that parameter, it will get you the keyframes.
There may be also some better ways…
Rafal
- symek
- Member
- 1390 posts
- Joined: July 2005
- Offline
- rafal
- Staff
- 1449 posts
- Joined: July 2005
- Offline
i'm no expert on cleaning mocap data, but i would guess that chrefit could be used. It just fits piecewise cubic Bezier curves, which approximate the original curve up to maximum discrepancy distance squared of the given limit (passed by -t to the chrefit). So, you may just need to try a few tolerance values and see if the smoothed curve does not loose any important animation gestures.
Rafal
Rafal
- edward
- Member
- 7725 posts
- Joined: July 2005
- Online
- symek
- Member
- 1390 posts
- Joined: July 2005
- Offline
- andrewlowell
- Member
- 537 posts
- Joined: Dec. 2005
- Offline
Make sure the “unload” toggle is turned on for the nodes for lots of samples / channels.
Also, it can be resampled to a lower rate but that probably won't be good. I haven't had problems with anything even close to 24fps yet but I guess it would depend on how many motions / characters / etc you're using, and how long the shot is etc.
Is there a specific issue?
Also, it can be resampled to a lower rate but that probably won't be good. I haven't had problems with anything even close to 24fps yet but I guess it would depend on how many motions / characters / etc you're using, and how long the shot is etc.
Is there a specific issue?
- DriesD
- Member
- 109 posts
- Joined: July 2005
- Offline
Thanks guys. I was trying to get channels from Max into Houdini. I used the asset on exchange and it kind of worked. Something went wrong with the chrefit thing, but I that's probably something that can be solved since with a simple wave CHOP everything worked as expected.
I have the feeling that chrefit doesn't work if there is only 1 sample at frame 1 or something. I'll look into that further.
Thanks for the directions.
D.
I have the feeling that chrefit doesn't work if there is only 1 sample at frame 1 or something. I'll look into that further.
Thanks for the directions.
D.
- edward
- Member
- 7725 posts
- Joined: July 2005
- Online
- Dean_19
- Member
- 319 posts
- Joined:
- Offline
-
- Quick Links