walkto plays no animation...
Hi,
Could someone help? Code:
male.act(vizact.walkto([3,0,8], 10.5, 90, walkAnim=male.getAnimationID('male_walk.cax'))) Code:
male.act(vizact.walkto([3,0,8], 10.5, 90, 2)) Kind Regards, Iwan |
It's working...
Wait... It's working now?!?!?!
Kind Regards, Iwan |
It's not working...?
I pasted my code here. The guy is supposedly running around making a big circle, but he only stretches his arms while sliding around.
Code:
import viz Thank you very much. |
The vizact.walkto command does not accept lists for the position. This will be fixed in a future release. For now you must use the following code instead:
Code:
vizact.walkto(each[0],each[1],each[2], walkSpeed=1.5, turnSpeed=90, walkAnim=2) |
Thank you...
Hi,
Thank you. Why didn't I try that before? I will keep in mind that "vizact.walk" does not accept lists to specify position. Have a great day. |
walkTo ... does not reach final destination....
1 Attachment(s)
Hi,
I used for loops to read geometries that define the walkTo's coordinates. Vizard read them okay. Please see the terminal window. However, Vizard did not finish the movement properly. The ducks are 1 coordinate behind the final destinations. I did try to type in the last command to force the duck to go to the final destination, but it didn't do anything. The coordinates are all in order, I did not missed a single one. Could someone point out where did I (possibly) go wrong? Kind Regards, Iwan |
Can you post a sample script that reproduces the problem? It's difficult to tell what the problem is by looking at the screenshot.
|
Action sequence code.....
Here is the module that load the objects file and set-up the movements...
Code:
import viz Any ideas, or insight would be appreciated. Thank you. Kind Regards, Iwan |
I ran your script but nothing is happening. Your script loads the path points from a file called 'antMovementPoints.osg', which was not included. Can you post this file, or modify your script so that it does not depend on it?
|
Additional file...
1 Attachment(s)
Please find additional file posted... I do apologise for not attaching this file earlier.
Kind Regards, Iwan |
Your sample script still does not do anything. Can you post a fully working script that I can immediately run and witness the problem. For example, there is no viz.go() statement in your script. Even when I added the viz.go() the ducks never start any actions and I don't see any key commands to initiate them.
|
Solved~!
Hi,
I do apologise for making you running around in a circle. I did not explain the script fully. I tried to post the full code, but this forum refused it, being too lengthy. What I posted previously was a module of a bigger simulation program. You need to add viz.go() as well at the end of the program. I do apologise.... T_T You may use these following these commands (in the terminal window) to make them run... controlAction() stiltsAction(), and stumpsAction() ..to make them run. I just found the solution. I increased the spacing between the movement points and it works just fine. Apparently, my spacing between points were too small. I Increased the spacing and it works really well. Thank you. Kind Regards, Iwan |
Hi,
The current walkTo always restart the animation whenever a walkTo point is reached. Therefore, it gives impression of a jagged movement with lot of walkTo points in the scene. Is there a way to use walkTo without having re-starting the animation at a new point? i.e. Getting a an avatar to run along given points without walkTo reset animation at every points. Thank you kindly. |
You can manually set the animation of the avatar and use vizact.goto instead of vizact.walkto. Once the final destination has been reached you can clear the animation manually.
|
Hi,
Yes, goto works fine. But it doesn't rotate the direction of the avatar automatically. I better stick with walkto. Thank you for your replies :D Kind Regards, iwan |
The next release of Vizard will allow specifying None as the walk animation, which will not affect the animation state.
|
All times are GMT -7. The time now is 08:41 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC