[27 Jan 2010] SetLayerStyle() on #TEXTOBJECT
Posted: Sat Jun 13, 2020 5:32 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 27 Jan 2010 19:18:04 +0100
Hi all,
it seems there's a HUGE change of HW4.5' API compared to HW4.0 regarding SetLayerStyle()?!!
In HW4.0, I did the following to change the text of my text object (created by CreateTextObject() ),
It seems that this is not possible anymore?!? Now, you have to create a completely NEW text object for EACH change of it's text and pass the ID of the new textobject to SetLayerStyle() instead? Is that true? Why this huge change? It is much more complicated and from the programmers point of view, much more work? And creating everytime a new text object must be expensive, too?
Well, if this is really true, then it would mean, more or less, that I have to design my HW4.0 script from SCRATCH again in order to get it work on HW4.5?
I don't believe that I want to do that and then I'm stuck -- HW4.0 has some severe bugs and HW4.5 has changed to much, then ..
Please, say that I'm wrong and that it's still possible in HW4.5 to pass a string to SetLayerStyle() in order to change the text of a text object.
regards, Tom
thanks!
Hi all,
it seems there's a HUGE change of HW4.5' API compared to HW4.0 regarding SetLayerStyle()?!!
In HW4.0, I did the following to change the text of my text object (created by CreateTextObject() ),
Code: Select all
SetLayerStyle(LayerIDofTxtObj, {text="my new text"})
Well, if this is really true, then it would mean, more or less, that I have to design my HW4.0 script from SCRATCH again in order to get it work on HW4.5?
I don't believe that I want to do that and then I'm stuck -- HW4.0 has some severe bugs and HW4.5 has changed to much, then ..
Please, say that I'm wrong and that it's still possible in HW4.5 to pass a string to SetLayerStyle() in order to change the text of a text object.
regards, Tom
thanks!