Hi Brian,
I used the bounding box in my original trials but wanted to use the intersect node to give a more accurate layout (allowing for nesting within the bounding box). My problem is to find away of using the output of intersect node as a true or false or 0 or 1 so I can then trigger the movement.
I looked at the JS code of the intersect node to see if the output could be changed to give a 0 or 1 and then create a new node but my limited JS knowledge is a problem hence my post.
Cheers
Barry
Instead of factory.commit(), putting the intersecting lines/curves/points in the geometry database,
objList = factory.calculate() would put the curves & points in an objectlist, which could be counted/ checked for length.
I'll defer to the professional programmers, due to my very limited knowledge, and limited time :-)
- B
Hi Michael,
I modified Max's node as your suggestions but cannot find anyway to connect it to the maths node.
Is the output a numeric number ?
Thanks
Barry
Hi Barry, the output for that case is a boolean value, not a number value. But if you want a number to be output instead, try switching the output type to:
Hi Michael,
changed code as your reply only thing had to change was "number" to "numarray".
works just as I needed so again many thanks for sorting it for me.
Cheers
Barry
Hi Michael,
I was a little premature thinking by altering the this.addOutput(“Out”,”number”);
to this.addOutput(“Out”,”numarray”); worked, it only allowed connection to maths node but the maths node does not recognise the input. So back to square one.
Any more ideas gratefully received.
Barry
Just take the 3 axes from the 3dm file -> place it over the axes points of your favourit piston > name the parts like in the 3dm file -> open nodeeditor with the nod file -> press play and enjoy...
runs fine on nodeeditor @'y'@ 0.99 without any special extensions....
There is a (minor) difference in the behavior of the concat2 node in MoI4beta.
It is a failure to release the mouse attachment to the node, under certain circumstances.
By clicking RMB on top of the concat2 node, one of three input configurations may be selected,
called Numbers, (numarray), Points, (pointarray), or Objects.
This should be done before attempting to wire the input with the wrong type.
In MoI4beta, "Dragging" a gold wire for Objects to the wrong input, Numbers or Points, and then pushing RMB and selecting Objects,
results in the proper input being changed to, and the wire attaches, but the mouse is then locked onto the node box.
The only way I've found to release the lock is to press ESC, and reload the file.
This does not happen in MoI3. Clicking the RMB releases the attempt to wrongly attach the wire.
>>2: Discover Javascript
Step 2 is maybe the pitfall hurdle obstacle stumbling block! :)
PS Nodes used are all native nodes renamed ?
As I have yet translated all native nodes in French that will be cool if you have a version with only native ones! :)
For example I don't see "CrankL" in my native list!
I follow this guy every day, day after day, but only for the pleasure of the show! ;)
(and i put Speed 2 : because we have only one life (not like cats who have nine! :D