Home › Forums › General Questions › How to restart the animations
- This topic has 7 replies, 2 voices, and was last updated 2 years ago by
aqiang.
-
AuthorPosts
-
2023-10-15 at 9:51 am #67619
aqiangCustomerHello everyone, I’ve been making good progress in implementing custom functionality for my datgui panel. Everything has been going smoothly until I reached the “load” option. When I click “load,” all the functions work, and there are no errors in the console. However, the objects in the scene that were supposed to have animations are now frozen. Strangely, the console still prints that the “isAnimationPlaying” for these objects is true. What could be causing this issue, and how can I restart the animations?
Attachments:
2023-10-15 at 11:36 pm #67624kdv
ParticipantWhat’s happening in the scene after
Loadhas been clicked? Are objects exactly the same as before?Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-10-17 at 1:34 am #67657
aqiangCustomer@kdv, gui.load( obj, recursive=true )
Recalls values that were saved with gui.save().
The explanation above is about the DatGUI code, and you can find it at https://lil-gui.georgealways.com/#GUI#load.2023-10-17 at 1:36 am #67658kdv
ParticipantThe question was not about your gui. It doesn’t matter. What’s hapenning with objects in the scene after loading?
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-10-17 at 1:37 am #67659
aqiangCustomerIn the Three.js editor, I noticed there are “stop” and “play” options. In the code, there’s a method
app.play()that can switch between editing mode and animation mode. Is there a similar method in the v3d app to start the animation loop?2023-10-17 at 1:41 am #67660
aqiangCustomer“I’ve uploaded a web example to this address https://vv4d.com/datgui/. You can try it by clicking ‘save’ first, and then after clicking ‘load’, the animation becomes static.”
2023-10-17 at 2:13 am #67661kdv
ParticipantCorrupted action (with undefined speed) after loading

Most likely the problem is in this parameter

Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-10-17 at 3:33 am #67664
aqiangCustomerThe input text ‘nomal’ from the puzzle doesn’t match the ‘normal’ key, now the issue has been resolved. Thank you very much! kdv
“ -
AuthorPosts
- You must be logged in to reply to this topic.

