Mouse motion capture during solver?

   2001   5   0
User Avatar
Member
1144 posts
Joined: April 2017
Offline
Hi!

I have a point moving on a path/curve with an acceleration attribute. I was wondering if I could have a way to increase/decrease the acceleration by the movement of my mouse during the animation/solver. If I move my mouse higher on my screen, I go faster, if I move it lower, it slows down. Could be also with keys on my keyboard instead of the mouse.

-Olivier
User Avatar
Member
1144 posts
Joined: April 2017
Offline
...Ok, so I see that it should be possible in Chops (something I've never used) with the mouse, keyboard and record nodes. I'm tying to make it work but I have no clue what I'm doing. I can see that my mouse movement is affecting something in the Motion FX View but I have no idea how to record it.
User Avatar
Member
1850 posts
Joined: May 2006
Offline
Funnily enough I had to do this yesterday, and used a tip that Oliver Hotz discovered through some cunning detective work.

Oliver found if you turn on realtime playback, enable autokeying, and waggle a transform handle, houdini will record the motion. That's good. But when you play the results, it has lots of pops and kicks and stutters. That's bad.

He kept experimenting and found that any panes which update per frame (eg the attribute spreadsheet) or any network views, seem to interrupt the keyframing. Hide or close anything that does this (easiest way is probably just to maximise the 3d viewport), and the recording will be.. well, not perfect, but a lot better than before. You can then use the animation editor, edit->bake keyframes to reduce the density of the recording.

It could be a lot better (worth poking sidefx), but at lesat this gives a means to roughly sketch in animation ideas.

-matt
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
1850 posts
Joined: May 2006
Offline
Little loom recording will probably be easier to follow:

https://www.loom.com/share/a20c996757fd4767b2c53cf56e5ef253 [www.loom.com]
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
1850 posts
Joined: May 2006
Offline
aha, worked out how to get the bake motion thing working; set the anim editor to allow you to choose segments.

https://www.loom.com/share/5086e19b66c346678e24d23b9f42fc0f [www.loom.com]
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
1144 posts
Joined: April 2017
Offline
Amazing!

I love how simple it is. Thanks a lot, Matt! This opens up so many doors.

-Olivier
  • Quick Links