Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Stitcher issue with RemoveStitch
#1
Hi, sorry I have yet another question.

I have been trying out the ObiStitcher component, for similar use as this thread:
http://obi.virtualmethodstudio.com/forum...-3838.html

Was able to add stitches by script without issue.
I am having problems removing stitches though.

Snippet of code used to RemoveStitch one by one
Code:
int initStitchCount = stitcher.StitchCount;

for (int i = 0; i < initStitchCount - 1; i++)
{
    stitcher.RemoveStitch(i);
        stitcher.PushDataToSolver();
}

Issue 1: Particles remain stuck together after stitch is removed
- this is during runtime
- run above script, particles remain stuck together.
- go to ObiStitcher inspector, press "Clear all stitches", particles remain stuck together

Issue 2: Seem only able to remove half the total stitches (?)
- above script stops removing stitches at the halfway mark
(eg I have 81 stitches in my test sample, remaining stitches stays stuck at 40)
- I notice it removes every other stitch (1, 3, 5...)

I'm not sure what to do, I could not find relevant documentation.

Thanks in advance.
Reply


Messages In This Thread
Obi Stitcher issue with RemoveStitch - by danazoid - 21-07-2023, 11:06 AM