THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/04/2008 at 09:36, xxxxxxxx wrote:
Cinema 4D Version: 10.5
Platform: Mac OSX ;
Language(s) : C++ ;
I have a few problems which prevent me to finish my plugin.
I have included the method Calculation in my calculation-node. When the outports are not connected to another one, or my node don't have any Outports, the method is not called.
What method is called for an initiator-node (when the node has no output ports).
2. Catch the incoming values from another ports
I have the following code-snippet:
GvValue* vinportA = ports.in_values[XXXXXXXX];
if (!vinportA) return FALSE;
if (!vinportA->Calculate(bn, GV_PORT_INPUT, run, calc, 0)) return FALSE;
At the place of XXXXXX I put in the number of the port. For example 0 for the first port, and for sub-ports I put in what? The next number 1? Then C4D crashs.
What can I put into it to take alle ports? I want to catch all values from other nodes too. I tried it with a loop, but how I said, C4D crashs at the k =1.
for ( int k=0; k <CountOfInPorts)
GvValue* vinportA = ports.in_values[k]
3. (The Last question I think) How to get the type of an inport.
In the calculation-table, is it possible to check which kind of port it is? String, integer,...
I know some of that are fundamental knowledge I should know... but it's hard to get examples for the GV
Thanks for your big help.
On 01/05/2008 at 02:42, xxxxxxxx wrote: