Is it possible to change the style of a textNode that is inside an instance?

Hi guys.

I need to change some specific texts within a text node that is within an instance.
Is this possible via API?

Yes, of course you can change the font style. You need to use the setRangeFontName or setRangeTextStyleId methods.


Because in documentation

setRageFontName wait font name.
setRageTextStyleId wait a string.

I need to change font-weight in a range.

The fontWeight property is read-only. To change the fontWeight, you need to change using the above methods.

Thank you!

This works for me.