Hi,
In the latest version avatars don't have a
cal object associated with them. To set the idle pose you would perform the following:
If you are finding that there are a lot of compatibility issues with your script, then send it to me and I'll update it for you.