Results 1 to 3 of 3

Thread: points[] and polygons[] question

  1. #1

    Question points[] and polygons[] question

    Hi all,

    I working through my first script (see thread ) and I'm scratching my head.

    When you go into MeshData mode, the points[] and polygons[] arrays are created indexing all of the points and polys in a selection set. When you go out of MeshData mode, those arrays arrays are wiped out. My problem is...How do you exchange those arrays between Command Sequence and MeshData? My script will be working on points and polys based on a specific index. I am afraid that when I go in and out of MeshData, those arrays will be recreated everytime, screwing up my order. Do this make sense? Maybe I'm just missing the obvious, hehe.

  2. #2
    assign them to another array:

    pc = editbegin();
      pnts[i] = points[i];
    i = 0;
      polys[++i] = x;
    "The hardness of God is kinder than the softness of men, and His compulsion is our liberation." - C.S. Lewis

  3. #3

    Smile "So close to the forest, I couldn't see the trees"

    Thanks faulknermano, sometimes the simple things just fly right over my head


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts