Solved How to add a multi _line string UserData

Hi.
i want set String UserData interface to multi_line,but in DESC dont find parameter to set.
this is my code:

bc = c4d.GetCustomDataTypeDefault(c4d.DTYPE_STRING)
bc[c4d.DESC_NAME] = "test"
did = obj.AddUserData(bc)

Thanks for any help!

相信我,可以的!

Hi @chuanzhen, you should define the UI to use for the user data like so:

bc = c4d.GetCustomDataTypeDefault(c4d.DTYPE_STRING)
bc[c4d.DESC_NAME] = "test"
bc[c4d.DESC_CUSTOMGUI] = c4d.CUSTOMGUI_STRINGMULTI
did = obj.AddUserData(bc)

Cheers,
Maxime.

Hi @chuanzhen, you should define the UI to use for the user data like so:

bc = c4d.GetCustomDataTypeDefault(c4d.DTYPE_STRING)
bc[c4d.DESC_NAME] = "test"
bc[c4d.DESC_CUSTOMGUI] = c4d.CUSTOMGUI_STRINGMULTI
did = obj.AddUserData(bc)

Cheers,
Maxime.

@m_adam Thanks for help!

相信我,可以的!