Softimage SDK Programmer's Guide > Script Development > Understanding Error Messages >

# ERROR : 2038 - Bad Variable Type

    'ERROR : 2038 - Bad Variable Type

Possible Cause

You may be trying to set a value on a property using a variable or data value of the wrong type. For example, if you have a boolean (true/false) variable and you try to set it using "true" as a string instead of true as a boolean or even 1, you get this error.

Suggested Solution

Check what kind of value you need to use and then check that you are using a variable or data value of that type.

Tip

You may get this error in VBScript if you have forgotten to use the set keyword which is used to store a pointer to an object rather than a data value).