On 29/01/2015 at 02:36, xxxxxxxx wrote:
Hello,
I've got the small problem of not understanding the GetDEnabling(....) function.
I wan't to dis-/enable a UserData field, currently working with "[c4d.DESC_HIDE]" provided by the forum here.
This is my small code in a PythonNode:
import c4d
def main() :
UD = myObject.GetUserDataContainer() #myObject is a link from the current object holding the UserData information
for descId, container in UD:
if descId[1].id == 2:
container[c4d.DESC_HIDE] = Input1 #Input1 is the result of a Checkbox in the same UserData
myObject.SetUserDataContainer(descId, container)
Now I "just" want to change hide into disable, but that seems to be a bigger problem?