13 Replies Latest reply on Mar 6, 2008 2:29 PM by Jonas Hummelstrand

    Scaling up motion path

      Can someone write me the expression code required to take a camera's motion path and scale it up by 100? I don't know the expression language, but managed to make an expression... but it seems to just shift it over.

      For those interested, I'm trying to scale up the camera movment data imported from XSI, to use with the imported XSI render, as it appears to be way too small relative to the AE world. The theory is that I scale up the motion path, and it might match up to what the original (XSI) camera did when it rendered the footage.
        • 1. Re: Scaling up motion path
          David Wigforss-Hv1BNN Level 2
          Parent the motion path to a null, and scale the null. Afterwards, you can delete the null.
          • 2. Re: Scaling up motion path
            Level 1
            Someone else suggested that, but it doesn't seem to affect the motion path... Not sure why. That's why I want to try an expression instead.
            • 3. Re: Scaling up motion path
              David Wigforss-Hv1BNN Level 2
              Is your motion path 3d? Guessing so, since it's imported from XSI. Is the null I suggested 3d enabled?

              If it was only a 2d path, I think you could also copy all the positions onto a mask, scale the mask, and then copy the mask shape back onto position, but I haven't tried that.

              Can't help you with an expression.

              Actually..... Just an idea.. Try this in a duplicate comp so you don't mess up your original...... Perhaps you could use the scale comp script. open the demopallete script, and then click the scale comp button. Then copy/paste the motion path to your other comp..??.. Dunno..
              • 4. Re: Scaling up motion path
                Level 1
                I got the scaling to work... I must have been doing something wrong before. But, it still isn't helping the situation, though. I'll try out your other suggestion, plus continue tinkering with with the scaling. Thanks so far...
                • 5. Re: Scaling up motion path
                  David Wigforss-Hv1BNN Level 2
                  PS I could never get Helge's script to work correctly, either....
                  • 6. Re: Scaling up motion path
                    Level 1
                    Hehehe... Ya, we're not alone on that one... I've been reading posts since 2006 of people saying 'Ya, I can't get it to work either'.

                    Actually, one thing I found with it is that it's set for 25fps... I think it's intended originally for PAL.

                    It's a shame that XSI doesn't output RPF files, as they work brilliantly (for me at least).
                    • 7. Re: Scaling up motion path
                      David Wigforss-Hv1BNN Level 2
                      PPS. Both XSI and AE use Javascript... :D
                      • 8. Re: Scaling up motion path
                        David Wigforss-Hv1BNN Level 2
                        "I think it's intended originally for PAL."

                        You know, you're probably correct.. Helge is from Germany...
                        • 9. Re: Scaling up motion path
                          Level 1
                          Strange though that they (nor anyone else, seemingly) has made a 'no-hassle' translation plugin. Even stranger that Helge's plugin seemingly has no documentation at all!

                          Frustrating problem... It seems like it could work, and some people apparently have got it to work (but never seem to reveal how!). I actually got the XML method to work with a simple sample scene (one object). In fact, I was blown away by how it even imported the geometry by creating it out of a bunch of AE solids, masked to give them non-rectangle shape, and positioned in 3D space to create a 'real' 3D object! Totally unexpected, and very cool.

                          But, for some reason, the 'real' XSI scene (the ones we did for the project), don't want to work with this system. Everything SEEMS right, except there is seemingly no positional movment ...in fact, I think there IS, but it's so minimal (in the AE Particular world) that it seems like there isn't.

                          Still waiting to hear from Trapcode (makers of Particular)...
                          • 10. Re: Scaling up motion path
                            Mylenium Most Valuable Participant
                            Guys, can you please not get into family talk. I've completely lost track of what actually is needed. A possible expression would be something like this:



                            This does not take care of matching the projection matrix of the camera, though. If it is not correctly stored in the sequence to begin with, simply moving the cam further out will not change anything. I'm also not sure what you were hinting at by mentioning Particular. It's camera system will function just like AE's camera and there is no magic button to align things.

                            • 11. Re: Scaling up motion path
                              Mylenium Most Valuable Participant
                              Ah yes, just saw that post over at Toolfarm. Please do not cross-post. We're all here for you.

                              • 12. Re: Scaling up motion path
                                Level 1
                                Cross post????? I posted a question on what I thought was a completely separate Trapcode company forum.
                                • 13. Re: Scaling up motion path
                                  Jonas Hummelstrand Level 2
                                  Google (and friendly bloggers) are your friends:

                                  i http://www.google.com/search?q=scale+motion+path+%22after+effects%22

                                  I hope you enjoy the first Google hit! :-)

                                  - Jonas Hummelstrand