yes thanks that was my idea, too , I created a temporary object, in my case a spline with 0 points and 0 segments and simply exchanged it, thanks.....
it should be possible to do it by yourself.
what in particular do you mean.....
but so far thanks for your time and effort
yes sorry , I have version 23.110 , i only bought in november, so cinema was already updated.
So my question about this function is basically, can I save a complete object with all it´s settings with this WriteHyperFile(). So when I have for instance a modeled polygon object, does it write also the points and polygons etc...?
I discovered the WriteHyperFile and ReadHyperFile functions in class c4d.storage
It says, that it saves a GeListNode to a HyperFile and also that it can read a HyperFile and replace the actual Node.
Does this function Write completely write an object to a hyperfile?
Because the writing worked , it has written the file, but when I want to read , Cinema freezes.
I mean the write function says, it replaces the actual node with that one , which is saved in the HyperFile.
I'm sure I got it totally wrong
Here is the small code snippet of the Save Script, which saves the selected object into a hyperfile on disc
path = c4d.storage.SaveDialog(force_suffix="file")
and here is the code snippet for the Load script , which should load and replace the actual node with the saved one
c4d.storage.ReadHyperFile(doc, doc.GetActiveObject(), path, 100)
So when I was younger everything was a lot easier
sorry @Ferdinand if I annoy you again,
but is it possible, for example, in a Python Generator that has a small user data interface, e.g. to change the name of a user data entry or to hide it or set editable to False, so that I can no longer change the value of it , I mean is it feasable with the code in the Python Generator to change this dynamically, not with script. So to change the data descriptions, I have problems with access.
like here in the picture:
The Boolean above, if true, then the entry should change from "steps" to "Big Steps" or it should hide it or that it is no longer editable.
and also is it possible to change completely the interface when the bool is on True, maybe instead of the real value , to set a Data Type Link .
Or do I have then delete the Userata and add a new one?
Or via PlugIn but Plugin is so difficult , I first have to study a bit plugin code...all these classes what they are for...man it is frustrating
you are so crazy Ferdinand, you helped me really .....you should make a paid workshop about that
I prefer to use this notation.......it is ok or?
and also your code example with getting the ID , very detailed and useful, thank's for that @ferdinand .
This c++ SDK documentation is amazing and much better than the python one....
The search function is awesome
Thanks Ferdinand, this helps me lot, I somehow already knew that it was structured that way, but it's not that easy for me :-), because per print you always get this int ID´s , which confused me....
yes, I have already found out that it is quite useful to consult the C ++ API, as it is much more detailed and a lot can of course be taken over ...
Thank you very much for this detailed explanation, that's exactly what I was looking for.
I'll have a look at it in C ++ with the description etc.
First, thanks for your effort, I really appreciate that....
Sorry for this missing tagging thing.....it is easy to overlook that sorry......I will edit it later when it's no more locked to edit.
Yes this DescID thing is so complicated :-), I really should go more in depth here.....
of course I need further help but this would crash the forum and the patience of many others
So thank you first Ferdinand
I am a little bit struggling to add userdata into a group.
I couldn´t find something in the forum...
So Example, I just want to add per script a group as userdata and want to put the child into this group.
do I have to use the DESC_PARENTGROUP or DESC_CHILDREN? or whatever??????????
Sorry for this beginner question......but you know , the road is rocky
This is great, why does nobody make this for Python, I mean Plugin development