Animation with HScript

   2740   0   0
User Avatar
Member
398 posts
Joined: July 2005
Offline
I'm interested in the following question - whether it is possible to do the
following:
1. To play the animation, not running the process of scene playback, i.e.
not “pressing” the “play” button.
For example:

for i = 0 to 10 step 0.01
opparm /obj/model t ( $i 0 0 )
end

Thus, we sort of animate an object, but the script itself, as I understand
this, runs in the same thread, as Houdini's interface.
In result we get a UI “freeze” and we can only see the initial and the final
object's state. It is desirable to make script refresh UI at each step of
the cycle.

2. To make Houdini recurrently translate the current frame (by means of fcur
operator, for example), refreshing UI at the same time.
3. To make something that can use interruption by the timer or system
clocks, in order to, let's say, call a part of the code once in a second.
f = conserve . diffuse . advect . add

fx td @ the mill
  • Quick Links