Adds an avatar.
<viz>.addAvatar( | |
filename | |
parent = viz.WORLD | |
scene = viz.MainScene | |
flags = 0 | |
) |
Flag | Description |
viz.AVATAR_DELAY_LOAD | Delay the loading of all animations specified in the avatar cfg file until they are used for the first time. Useful for speeding up load time and reducing memory usage by not loading unnecessary animations. Using this flag will override any use of the delay_load option in the cfg file. |
viz.LOAD_ASYNC | Load the model asynchronously. See remarks below. |
Note: When loading asynchronously, most avatar commands will not work properly until the asynchronous operation has completed successfully.