THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/01/2012 at 07:16, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ; XPRESSO ;
---------
Hey guys,
as we are in the final phase of our project i encountered a little problem.
We are writing a plugin for university which gets data out of a xpresso node.
When you create some xPresso circuits you can enter different data for some kind of nodes. Mostly interesting for us are the math nodes like invert, oder boolean nodes.
First, PLEASE NOTE WE ARE WRAPPING THE API TO C# - nothing special with the code just another syntax for this problem ;)
Here is a example picture of an easy xpresso circuit:
http://www.abload.de/image.php?img=forum_exampleej4kr.jpg
In this example i want to get the information what name this negation operator has - if a comment is inserted, which type it will result to - > Real, Color, Integer, etc.
At the moment i got this snippet of code:
GeData tData = new GeData();
node.GetParameter(new DescID(C4dApi.XXX), tData, C4d.DESCFLAGS_GET.DESCFLAGS_GET_0)
Datatype something = tData.Get"Datatype"();
I got this while working through the documentation and checking the forum and also from an old thread of mine here in the forum.
The problem is, i dont know what to insert for the "XXX" - see above.
I need the correct "keys" or "consts" as you call them i think. The var "something" will always be null with the "keys" i tried.
I hope you can give me some hints :)
Cheers,
Oukie