Having tried to animate objects using dynamic component in SketchUp, I feel that it isn't adequate to make a complicate movement. But before giving up, found that there is Ruby API which can allow to move around object at a timer call. As timer call will be periodically ticking which can increment position of object to desired position, it will definitely the right way to animate objects.
It takes time to be fluent on Ruby as it is a script language which has lots of unfamiliar concepts and syntactic sugar. But it is worth investment as I can make below animation
The outliner at the above video shows the hierarchy of the objects. For example, 'tractor_base' has 'tractor's and 'grip_base' which are moved along as the 'tractor_base' moves. Also note that 'glass' is rebased to 'tractor_base' when it is loaded on the stage and then rebased to 'bed' after it is released from the grip.
And the Ruby console shows internal debugging prints that must means nothing to outsider but invaluable information for the programmer.
I will describe what Ruby code is running behind from next blogs. But for those who can't wait, below shows what is driving in high level.
essay on programming languages, computer science, information techonlogies and all.
Wednesday, March 26, 2014
Subscribe to:
Posts (Atom)