Hi, thanks for the information. I will try and utilise the x and y coordinates in GvNodeMaster.CreateNode() instead.
I am creating a GvNode via GvNodeMaster.CreateNode() in a python script that opens an existing cinema 4d file and stores it after the modifications to a different cinema 4d file. When I open the newly created file in cinema 4d I can access and write to the the GvNode's x and y position perfectly fine like this in the python console:
# x coordinate
my_node.GetDataInstance().GetContainerInstance(1001).GetContainerInstance(1000) = x
# y coordinate
my_node.GetDataInstance().GetContainerInstance(1001).GetContainerInstance(1000) = y
But when I try to access those coordinates from inside the python script via c4dpy I get an NoneType error because the last base container (1000) is missing in base container with id 1001. I tried manually creating a new BaseContainer instance and attaching it like this:
my_node.GetDataInstance().GetContainerInstance(1001) = c4d.BaseContainer()
But this totally messes up the graphview when I open it in cinema 4d. I guess because all the other attributes like width and hight are missing.
Is this base container somehow created at a later stage where I don't have access yet? Is this intentional?
Are you planning to implement the new static typing features introduced in python 3.5 in future releases?
In some parts of the python documentation I can already see type information for input arguments written like Union[int, float, c4d.Vector] etc...
Right now I am creating my own stubs for pylance but it would be awesome, if you could add those