Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot use 'in' operator to search for 'attach_id' in NaN
#1
hello, im new to this web & i cannot figure out how to fix this problem.
when i type in the code (or whatever you wanna call it) and transform it into 3d, it says "Cannot use 'in' operator to search for 'attach_id' in NaN" as an error.
i dont know what part of my code is wrong, ill leave it here:
ring
6sc
6sc2inc
3sc, 6sc2inc, 1dc5bobble, 3sc, 1sc2inc, 1dc5bobble, 1sc2inc
1sc2inc, 3sc, 1dc5bobble, 2sc2inc, 1dc5bobble, 10sc, 2sc2inc, 3sc, 1sc2inc
6sc, 1sc2inc
36sc
36sc
36sc
36sc
36sc
36sc
36sc
5sc, 5sc2tog, 21sc
1sc@15, 2*(1sc,sc2inc), 8sc, 2*(sc2inc,1sc)

also, the original pattern is: 
  1. MR 6sc
  2. inc x 6 (12)
  3. (3sc), 6inc, BB5, (3sc), inc, BB5, inc (24)
  4. inc, 3sc, BB5, 2inc, BB5, 10sc, 2inc, 3sc, inc (30)
  5. (4sc, inc) x 6 (36)
  6. sc (36)
  7. sc (36)
  8. sc (36)
  9. sc (36)
  10. sc (36)
  11. sc (36)
  12. sc (36)
  13. 5sc, 5dec, 21sc (31)
  14. make a sc in the 16th st, (1sc, inc) x 2, 8sc, (inc, 1sc) x 2, (20), sl st

help is appreciated!


Attached Files
.png   image_2025-06-21_221620275.png (Size: 17.17 KB / Downloads: 22)
Reply
#2
The error is due to wrong syntax in the last line. You wrote sc@15, whereas it should be sc@[-1,15].  The -1 implies the previous round, and the 15 implies stitch 16. 

Also, I'm pretty sure your second line should be sc6inc, and not 6 sc. You want all 6 sc's to be worked in the ring. Another way of doing the same is writing:
ring.R
6sc@R

Also, in the original instructions you have (4sc, inc) x 6, but in the code you wrote 6sc, 1sc2inc. I fixed that as well in the code below.

With those modifications, you still get a model that's not looking right -- it's all twisted. I'm pretty sure it has to do with the fact that the round:
3sc, 6sc2inc, 1dc5bobble, 3sc, 1sc2inc, 1dc5bobble, 1sc2inc
has too many stitches. The previous round has 12 stitches, where as here you work into 3+6+1+3+1+1+1=16 stitches, so the last 4 stitches of that round wrap around and instead of being worked in the previous round, they are actually worked in the first 4 stitches of this last round. Anyway, I'd check the original instructions for mistakes.

Hope that helps!

Here is the code:


Code:
ring
sc6inc
6sc2inc
3sc, 6sc2inc, 1dc5bobble, 3sc, 1sc2inc, 1dc5bobble, 1sc2inc
1sc2inc, 3sc, 1dc5bobble, 2sc2inc, 1dc5bobble, 10sc, 2sc2inc, 3sc, 1sc2inc
(4sc, sc2inc) * 6
36sc
36sc
36sc
36sc
36sc
36sc
36sc
5sc, 5sc2tog, 21sc
1sc@[-1,15], 2*(1sc,sc2inc), 8sc, 2*(sc2inc,1sc)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)