03-07-2007 02:36 PM
03-07-2007 04:23 PM - edited 03-07-2007 04:23 PM
Message Edited by altenbach on 03-07-2007 02:24 PM
03-07-2007 04:27 PM
03-08-2007 09:19 AM
03-08-2007 09:51 AM
Because it sounds like you will adding different amounts of points each time I would suggest using the Cursor List property or use anotations.
Either way you can build up the array of cursors or annotations, setting their position, color, style, etc. and then set the property and you are done.
03-08-2007 10:13 AM
If you have a large or variable amount of points to add, use my first method instead of cursors!
Simply use a "built array" node to add the two clusters before going to the graph terminal.
(Notice that you did not copy my code correctly. For the X array, you need to tap into the output BEFORE the "add" function inside the FOR loop, else your x-array is shifted by dx and the first point in the array is "x0+dx" instead of "x0" as it should be.
03-08-2007 10:23 AM
03-08-2007 10:42 AM - edited 03-08-2007 10:42 AM
You only have one cursor defined, thus your cursor list only contains one element, thus the loop runs only once!
Remember that you don't need to wire all unmodified elements across, just the changed elements IF you wire the input cluster when you bundle. Also, if you use "bundle by name" you need to only show the useful elements.
Why do you think you need to jump through all these hoops for the coordinates (make array..replace array element..index array) just to get the original input back??? 😮
Anyway, here is one possibility:
This assumes you have the first cursor defined. In hte more general case, just use a cursor cluster diagram constant instead of reading the cursor list and indexing the first element.
Message Edited by altenbach on 03-08-2007 08:43 AM
03-08-2007 10:46 AM
cig438 I think there is some confusion about what you want. Do you want a single point added or a bunch of points added? Do you want every point to have a different color, are do you simply want 5 or 6 points added all the same color?
If you want to add 5 or 6 same colored points then use Altenbachs code. If you want every point to have a different point you will need to do something different.
03-08-2007 10:54 AM - edited 03-08-2007 10:54 AM
Message Edited by altenbach on 03-08-2007 08:54 AM