6 Replies Latest reply: Sep 12, 2012 8:34 AM by sanchousf RSS

    How get the mesh vertices of the effects "Puppet"?

    sanchousf

      How, in a script, get the mesh vertices of the effects "Puppet"?

        • 1. Re: How get the mesh vertices of the effects "Puppet"?
          Rick Gerard MVP

          I'm not sure what data you want to extract. Puppet pin keyframe data looks like this:

          Adobe After Effects 8.0 Keyframe Data
          
                    Units Per Second          29.97
                    Source Width          318
                    Source Height          52
                    Source Pixel Aspect Ratio          1
                    Comp Pixel Aspect Ratio          1
          
          Effects          Puppet #7          arap #3          Mesh          Mesh #1          Deform          Pin #2          Position
                    Frame          X pixels          Y pixels 
                    51          289.175          21 
                    59          289.063          17 
                    64          287.032          1 
                    66          287.023          -3 
                    70          287.018          -7 
                    74          287.009          45 
                    82          287.001          59 
                    83          287.001          57 
                    84          283.002          49 
                    88          283.001          17 
                    90          277.001          -1 
                    96          277          -5 
                    101          279          25 
                    103          279          39 
                    110          279          43 
                    118          269          -86.6667 
                    121          269          -266 
                    122          271          -256 
                    129          273          -236
          
          End of Keyframe Data
          

          This is all yoy get when you copy the keyframes. Since this is a scripting question, I'd move the post to the that forum. You'll find it on the AE Forum home page in the right column.

          What are you trying to do with the data?

          • 2. Re: How get the mesh vertices of the effects "Puppet"?
            Mylenium MVP

            The mesh is internal. There is no data that you can simply snatch in a script or expressions. As Rick illustrated already, all you ever get are the pin coordinates relative to the layer.

             

            Mylenium

            • 3. Re: How get the mesh vertices of the effects "Puppet"?
              sanchousf Community Member

              I want to implement the export of the effects in the game engine. To do this, I need to know how the entire mesh. If I only use the "Puppet Pin" then I need to write the algorithm distortion. It is quite difficult, and the result of his work will be different from what is achieved would animator.

               

              P.S. I think you're right about moving the post.

              • 4. Re: How get the mesh vertices of the effects "Puppet"?
                Rick Gerard MVP

                I don't think that's going to work.

                • 5. Re: How get the mesh vertices of the effects "Puppet"?
                  Mylenium MVP

                  I agree with Rick. You're betting on the wrong horse if you hope to export this kind of stuff from AE. If you need UV texturing on a mesh, then use a mesh in a 3D program and export it. Due to how the Puppet Mesh is generated, the distorsioss will be quite uneven, anyway and only get worse at lower (texture) resolutions, nothing what I would like to see in a game....

                   

                  Mylenium

                  • 6. Re: How get the mesh vertices of the effects "Puppet"?
                    sanchousf Community Member

                    The fact that all the 2D animation done in After Effects and export to the game on "Transform". I would like to implement export "Effects".