Trying to utilize verold for animating 3D models through a script has been challenging. The proper usage of the verold API components seems unclear at the moment.
A model has been successfully loaded into the scene with a script attached as an attribute of the model itself. Additionally, a keyframe animation attribute has been established to not play automatically.
The main objective is to trigger a specific animation when a user clicks a button. The model object is visible when employing the following code:
PlayAnimation.prototype.init = function() {
// this.veroldEntity is accessible here but Three.JS data isn't fully loaded
cObject = this.veroldEntity;
};
However, there is uncertainty regarding the use of the playanimation(loop, startTime, save, fn) function.
Therefore, the questions that arise are: 1. Is this the correct method to initiate an animation in a script? 2. If so, could someone provide guidance on the proper utilization of this, specifically concerning the save and fn parameters?
Appreciate any assistance provided in advance...