THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/12/2010 at 09:20, xxxxxxxx wrote:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : PYTHON ;
i would like to add new data channels to my tp particles. I'm not sure how to do it, and perhaps someone can help me.
i add a datachannel via:
the api says that the first int defines the type of data i save in my channel. Unfortunatly i couldn't find a description of the Datatypes available. Can someone give me a hint on it?
i just tried to add soem integer data via:
but it throws a TypeError: The data channel is not accessible:'145286240'
i guess 0 is not for integer types
My first goal would be to store simple datatypes in my channels but i'd like to achieve even more complex datatypes (perhaps self defined classes?)
However, i would be really glad if someone could give me a hint or perhaps points me to a direction where i can learn more about datachannels and SetPData and GetPData.
On 12/12/2010 at 09:59, xxxxxxxx wrote:
Hi, to create a custom integer channel check out:
Here is a small list of types which can be used as well:
On 12/12/2010 at 11:52, xxxxxxxx wrote:
thank you for your answer. It works very well. Is there a possibility to add more complex types? Like Arrays for example or structs?
On 12/12/2010 at 13:53, xxxxxxxx wrote:
Unfortunately thats not possible. To check out which types can be set, just open the TP Settings Dialog.
(Simulation->Thinking Particles->Thinking Particles Settings->Tab: Channels)