On 25/10/2016 at 01:01, xxxxxxxx wrote:
I need to something pretty simple, but I can't figure out how it's done:
My tag plugin has just two elements in the interface, a button and a text field (STRING). How can I change the content of the text field by code?
In pseudo code:
MyPlugin.MyTextfield = "Hello World!"
Ps: The plugin has to work in R17.
thank you in advance,
On 25/10/2016 at 01:25, xxxxxxxx wrote:
Hello and welcome,
the syntax you are using is not correct. You are using the syntax of accessing a member variable of the given object.
A parameter of an object is not a member variable. You can access a parameter using the SetParameter() and GetParameter() methods or the subscription syntax. You find examples for both ways in the Python examples.
On 25/10/2016 at 05:00, xxxxxxxx wrote:
Thank you! That was exactly what I needed.
My final code:
node.SetParameter(STR_MY_PARAMETER_ID, "Text to Display", c4d.DESCFLAGS_SET_0)