I tried this exact same expression, and I keep getting errors stating SyntaxError: Invalid or unexpected token, an expression was disabled as a result of an error. Any ideas on what’s going on?
weights = [
‘Light’,
‘Regular’,
‘Bold’,
‘Ultra’,
‘Black’
];
family = thisProperty.style.font;
family = family.split(‘-‘);
select = Math.floor(clamp(effect(“Select”)(“Slider”), 0, weights.length – 1));;
createStyle().setFont(family[0] + ‘-‘ + weights[select]);