I have two DAT to CHOPs and each is a table with a single column. One table (table1) has a value iterating through and looping 0-47. So all 48 columns have the same number at the same time and the number counts up and loops.
The other column (table2) has 0-47 just statically numbered.
I have them both feeding in to a Math and I have combine channels set to subtract. The idea is that when the columns are equal, I am expecting to see the number 0 in that cell of the column.
The output I’m seeing from maths is giving me two columns with the first column iterating as expected but the second column all just with 0.
TLDR I’m trying to do table1-table2 with Maths.
Not sure what I’m doing wrong?
Hello,
It would be easier if you can post the project (.tox or .toe) As to understand what you made.
Thanks for your reply. I’m attaching a cleaned up version that only focuses on this issue. Thank you for your help!
Testing Day truncated.1.toe (4.3 KB)
Hello,
I tried to understand what is your goal.
-
put the different operators in their logic order, from left to right. It is easier to understand what you want to do.
-
do not change to much the size of operators, zomming is a better way to see details.
-
your dat to chop Chop is not well set, You need to set:
– first row to name
– first column to value
- Math 5 must be set to “Combine Chops” not “Combine Channel”
But I cannot correct more because I really dont understand WHAT you want to achieve.
Just explain it with words and perhaps I can help you. I think it can be achieved in a much more simple way.
Testing Day truncated.2.toe (6.8 KB)
Thanks for the reply. Those changes didn’t give me the results I expect.
In words:
I have one table “idx” with one column and rows numbered 0-47.
I have one table “step” with one column and 48 rows that will all be the same changing number (0, 1, 2, 3, etc).
I am trying to subtract (“step” - “idx”) so that I will get a single column output where for example if step value is 15 then the output would be:
Row 1:
Because “step” is 15 and “idx” row 1 is “0” then output will be -15
Row 2:
Because “step” is 15 and “idx” row 2 is “1” then output will be -14
Row 3:
Because “step” is 15 and “idx” row 3 is “2” then output will be -13
Etc, etc.
So I would then have the output being a table with the a single column of numbers always shifting by one every time it loops.
The whole point of this is that then I will isolate where the “0” happens in every change and assign that to a variable of an instance in a geometry that I’m manipulating later.
Perhaps it is what you want ?
You dont need to buils a table with the same rows, its possible to add the number to all the channel of a chop.
Testing Day truncated.3.toe (4.0 KB)
Yes! That’s beautiful and makes perfect sense. I was under the impression that you needed the same number of channels from both inputs to math. Thanks so much!