Hi Barry, it looks like you'd need to do 2 things - you'd need to change the output type of the node which is defined by this line in objIntersect():
this.addOutput("Out","objectlist");
It sounds like you want it to output a boolean value, it looks like you can put in "boolean" for that, so change that to:
this.addOutput("Out","boolean");
Then to actually make the boolean value you will need to change the onExecute function for objIntersect, the last line currently looks like this:
this.setOutputData(0, output);
To change that to a boolean value instead of outputting the object list try this:
this.setOutputData(0, output.length > 0);
So that should then output true if anything was generated from the intersection or false if nothing was generated.
Does that maybe do what you need?
- Michael
|