Jump to content

Sign in to follow this  
Tesa Demiur

Camera path issues .

Recommended Posts

  • Topic Author
  • Thank you Jed.

    Share this post


    Link to post
    Share on other sites

    Hey Tesa, the Xpresso tag was only the node representation of the set driven keys: Just drafted a slider using User data to to drive the Spline Path for the sake of a better interface.

    It's not needed really

    Share this post


    Link to post
    Share on other sites

    @Vertex Helix Ahhh - set driver. Was going to pull your leg about the unnecessary range mapper in your scene with 1:1 correspondence ::):

    Share this post


    Link to post
    Share on other sites

    @jed haha...I wish I'd tell you I put it there just to pull your leg!!! (but no, that C4D's auto routine and spoiled it for us):lol:

    Share this post


    Link to post
    Share on other sites
  • Topic Author
  • Hi Jed,

    How do I go on a seamless loop using your xpresso tag? If I set the constant to 100 or 120 I like it goes really slow, but ones the cursor hits the end of the timeline the object goes back to position 0. I would like to have the object keep moving along the spline. I can have that by increasing the frame numbers to let say 1000, but how do I achieve that on a 90F. Thank you.

    Share this post


    Link to post
    Share on other sites

    The seamless loop scene was designed to loop (from zero) several times in one anim eg two and a half passes over say 200F.

     

    Another way to generate any movement is by addition - adding a small value to the current position every frame. By changing the amount added, this method has a kind of 'speed control'. Due to the adding, the value sticks when you wind the anim back to zero. Most people see this as a problem, so put some kind of 'reset at frame zero' code in. This seems to be the behavior you are looking for - position value remains when timeline restarts.

     

    In this file I have put a reset button in.

     

    run-reset.c4d

     

    Bear in mind that any scene that uses addition 'jumps' when you click in the viewport, although you can disable XP for tinkering purposes.

    Share this post


    Link to post
    Share on other sites
  • Topic Author
  • Oh, this one is really nice Jed. I can adjust the speed with the control and it’s quite smooth. Thank you so much. 

    Share this post


    Link to post
    Share on other sites

    I'm puzzled about the 'carry on at 90F' business - what you up to ?

    Share this post


    Link to post
    Share on other sites
  • Topic Author
  • When I implemented your first Xpresso I didn’t have that seamless loop you told me about. The object was going back to its initial position instead of keeping moving along the spline once the cursor hits the last frame, no matter if it was the 90th or 200F. It wasn’t a continuous loop because I didn’t do it right probably. But your second code is really good, I love it. It does exactly what I need. I experimented a little with it and I took the camera and the cube out and had a pyramid on the circle. I wanted the tip of the pyramid to be on the circle facing the moving direction which it does, with the spline going through the middle of the pyramid. It’s looping seamlessly and I can adjust the speed which is really nice. However, at some point on the circle the pyramid flips having the base facing the direction and back with the tip after that.   Now the Up vector null doesn’t fix this problem. It might require some work in the Xpresso code. What do you think? File attached.

    Pyramid .c4d

    Share this post


    Link to post
    Share on other sites

    You need a rail. I usually just copy the main spline and drag it to one side. Sometimes it needs to be alongside, sometimes concentric - scaled up. Concentric would be for something like a helix.

     

    rail.c4d

     

    edit: re seamless -  align to spline only goes up to 100%. My bit of XP uses modulo to go

     

    98%, 99%, 0%, 1%, 2%

     

    ie goes past 100% seamlessly, without a jump.

    Share this post


    Link to post
    Share on other sites
  • Topic Author
  • That’s awesome. Much appreciated...

    Share this post


    Link to post
    Share on other sites

    Checkout how a rail tames this helix sweep - try with and without rail

     

    helixrail.c4d

    Share this post


    Link to post
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    Sign in to follow this  

    • Recently Browsing   0 members

      No registered users viewing this page.

    Latest Topics

    Latest Comments

    ×
    ×
    • Create New...