On 02/06/2016 at 08:32, xxxxxxxx wrote:
I have a project with a fair amount of dynamic user data and I'd really like to use groups without a title bar so my user data doesn't get all jumbled up when replacing sliders etc.
I'm using c4d.DESC_TITLEBAR to attempt to set the container to not have a title bar.
The value in the base container for the group remains False when I get the UserDataContainer again to check it and even if I go into the GUI user data settings, the boolean for title bar is indeed unchecked.
If I toggle the check box to True and back to False for title bar in the GUI user data settings, the title bar does then disappear. Unfortunately this won't be helping me in the long run.
root = c4d.GetCustomDatatypeDefault(c4d.DTYPE_GROUP) root[c4d.DESC_NAME] = "Root group" root[c4d.DESC_PARENTGROUP] = c4d.DescID(0) obj.SetUserDataContainer([c4d.ID_USERDATA, 1], root) u_id = 1 desc_UD = c4d.DescLevel(c4d.ID_USERDATA) desc_ID = c4d.DescLevel(u_id, c4d.DTYPE_GROUP, 0) desc_id = c4d.DescID(desc_UD, desc_ID) bc = c4d.GetCustomDatatypeDefault(c4d.DTYPE_GROUP) bc[c4d.DESC_NAME] = "Group 1" bc[c4d.DESC_TITLEBAR] = False bc[c4d.DESC_PARENTGROUP] = desc_id obj.SetUserDataContainer([c4d.ID_USERDATA, 2], bc)
Do I need to update something somewhere before it'll work? Is there something I'm missing? I'm always reluctant to assume things are bugs.