I'm adding some Xpresso nodes to my objectdata plugin.
I have a mathnode and SetParameter(GV_MATH_FUNCTION_ID, GV_MUL_NODE_FUNCTION, DESCFLAGS_SET_0) works perfectly.
However, when I try to use SetParameter(GV_DYNAMIC_DATATYPE, GV_INT, DESCFLAGS_SET_0) it does nothing. Even if I change GV_INT to 15 (the corresponding value) it does nothing.

Does anybody know how to fix this?
Thanks in advance for your help and time!
Greetings,
Casimir Smets

I've tried it inside a new project, and there it works fine.
It seems to be failing by code that comes after the setting of the datatype.
If I delete that code, my problem is gone.
But, now, I'm on to the next problem, setting the second input port value.

I've found a great post about how to set a port value: http://kinug.com/c4d/cpp/help/pages/c4d_graphview/doc_GVData699.html
However, if I add the method (GvSetPortGeData) and call it with: GvSetPortGeData(-1, myNode, mySecondInPort, run)); it seems to do nothing.
I have also tried this inside my new project, with the same result.
Before my call to GvSetPortGeData() I have the following code:

when you debug your code you see that GetRun() returns a nullptr so GvSetPortGeData() cannot work. GvRun is only available during the calculation of Xpresso, so GvSetPortGeData() can only be used inside a custom Xpresso node while it is calculated.

But it seems using the correct DescID it is possible to simply use SetParamter() :