Chameleon also allows you to set sub-component fields using the field object. For example, if a field was like |delta^gamma|, then this function:
field.subfield(1).value = 'beta'
would change the field to |delta^beta|.