Results 1 to 3 of 3

Thread: Just starting LScripting...

  1. #1

    Just starting LScripting...

    Hi, just started LScripting and I was trying to get it to read morph data from a point and then transfer that data to another point. Once I get the data I'm pretty sure I will be able to transfer it. I have been searching but I can't seem to find if I can even get all that info from a point.

    This is in Modeler, by the way.
    Josh Darling
    DAZ Productions
    www.daz3d.com

  2. #2
    here's a sample that might set you on the right direction:

    Code:
    selmode(USER);
    editbegin();
    src = points[1]; // source point
    tgt = points[2]; // target point
    
    vmap = VMAP(VMMORPH); // vmap constructor
    
    while(vmap && vmap.type == VMMORPH) // cycle through vmaps
    {
      if(vmap.isMapped(src)) // checks if src point has this particular vmap
      {
        val = vmap.getValue(src); // get the value of the src
        vmap.setValue(tgt,val); // sets value of tgt point based on val
        break;
      }
      vmap = vmap.next();
    }
    note that i havent tested the script above. but the process is somehting like it.
    "The hardness of God is kinder than the softness of men, and His compulsion is our liberation." - C.S. Lewis


  3. #3
    Thanks a lot. I'll give it a try.
    Josh Darling
    DAZ Productions
    www.daz3d.com

Bookmarks

Posting Permissions

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