This script is failing with the error:
Error: unknown type: 'z1z3'
where z1z3 in the above example is the object name...
Any ideas anyone?
Can you give me code that reproduces the error? I just tried a simple test and it worked fine.
Script was corrected by Warren: