Pi_ Posted June 23, 2015 Share Posted June 23, 2015 is it possible to partially color a string, like it is possible to partially make it bold (with SetTextStyle). You can make the object in vectorworks, but an export and re-import to vectorscript doesn't work... see attachment Quote Link to comment
Pi_ Posted June 23, 2015 Author Share Posted June 23, 2015 FUNCTION SetTextStyleRefN ( objectId :HANDLE; start :INTEGER; count :INTEGER; textStyleRef :LONGINT ) :BOOLEAN ; could do it, but how can I get the 'textStyleRef' if I don't have an object with that textstyle. Is it possible to create a new textstyle and set its attributes, and get the ID of the textstyle? Quote Link to comment
Pi_ Posted June 25, 2015 Author Share Posted June 25, 2015 Name2Index('ROOD') gets you the textstylerefID 1 Quote Link to comment
DomC Posted January 6, 2017 Share Posted January 6, 2017 Great Getting mad. I got this too late ... I made a Marionette Script for this. Maybe interesting for you too. https://forum.vectorworks.net/index.php?/topic/47686-colorize-subtext-of-text-object/ Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.