0 Replies Latest reply on Apr 17, 2006 12:33 AM by SuperTank

    Problems with cloneModelFromCastMember

    SuperTank Level 1
      Hello
      I have a somewhat of a problem with cloneModelFromCastMember(). Basically what I want to do is copying a deformed plane I'm making from one cast member to another.
      The problem however is that the plane becomes completely plain.


      The following image shows the result of these lines:

      tname = "HeightmapMirror"
      tworld = member("3dWorld")
      tworld.cloneModelFromCastMember(tname, "terrainMdl", tworld)

      http://supertank.mine.nu/heightmapCpy.jpg


      I am aware that I'm cloning and inserts the model into the same member, however the result becomes the same if I were to switch to another target. As for example:
      member("MirroredWorld").cloneModelFromCastMember(tname, "terrainMdl", tworld)


      If you need more information, just ask. Or use the following links to view the source code.
      Creation and the deformation of the plane:
      http://extraball.sunsite.dk/notepad.php?ID=17092
      The moviescript. Where the cloning occurs.
      http://extraball.sunsite.dk/notepad.php?ID=17093


      Anyone got any clues what I'm doing wrong?

      Thanks.