Hello,
I'm trying to set the value of a string with a Static Text interface in my ObjectData plugin.
Here is an example of what I'm trying to achieve. I created it in the UserData by adding Data with a String Data Type and Interface set to String, setting the value, then changing the Interface to Static Text:
In my current Descriptions, I've tried using STRING
and STATICTEXT
but neither has produced the desired result.
STATICTEXT READOUT_WIDTH { ANIM OFF; }
STRING READOUT_WIDTH { ANIM OFF; }
When using STRING
, I try to set the value, but I get the error TypeError:__setitem__ expected float, not str
. I don't know how to set it's value then make it a read-only/Static Interface.
op[c4d.READOUT_WIDTH] = str(width)
Can anyone please help me create this type of static text string? Thank you!