Animate Transform (position and rotation) Action Clip

Slate Forums Custom Clips Animate Transform (position and rotation) Action Clip

This topic contains 4 replies, has 2 voices, and was last updated by  dgoyette 5 days ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2171

    dgoyette
    Participant

    Forgive me if this is redundant, but I couldn’t find this specific kind of clip. Basically, this just animates the position and rotation of a transform, allowing you to use the position and rotation handles to assist in recording keyframes.

    There are other Transform action clips for moving and rotating objects. But they all simply set the value to a specific value per clip over the course of the clip. I missed the ability to keyframe multiple positions and rotations over the course of a clip. Granted, that can be done via the more generic “Animate Property” action clip. However, when using Animate Property for position and rotation, you don’t get position and rotation handles in the scene view. That makes Animate Property difficult to use for transforms.

    This Animate Transform clip is really just a combination of the techniques used in “Look At” and “Animate Biped Limb”. The result is a clip that makes it easy to keyframe position/rotation changes to a transform:

    As with the other clips I was copying from, if you leave the Blend Out value at 0, the object will remain at the final position/rotation when the clip ends. Otherwise, it will return to its initial position/rotation.

    Please let me know if you find any problems with this. And on the whole, it feels like this kind of clip should just be part of Slate. Please let me know if it’s already there, and I’ve just somehow overlooked it.

    The script is attached, but I’ll also paste the content below in case anyone is nervous about opening a random zip file.

     

    Attachments:
    You must be logged in to view attached files.
    #2175

    Gavalakis
    Keymaster

    Hello there,

    Thank you for sharing your custom clip. There exists the Animate Properties clip, which is able to animate any property (position, rotation included), on the actor and which also shows a 3D animation curve (path) with handles.

    Have you tried that by any chance?

    Let me know,

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    #2184

    dgoyette
    Participant

    I’m not sure if I’m missing something, or if we mean two different things when we say “handles.”

    Using the built-in Animate Properties clip, I can confirm IĀ do see a 3D path when animating position. However, I don’t see a drag handle in the editor. Here’s what I see when using Animate Properties:

    I see this whether I’ve turned Auto Key on or off.

    Compare this to the drag and rotation handle I see when using the custom clip I’ve added, Animate Transform:

    I get the position and rotation handles in the editor, even with Auto Key enabled, so I can very easily drag the cube around and have it create keyframes as I do.

    Is there something I’m missing about how to get Animate Properties to show me the drag/rotation handle?

    Attachments:
    You must be logged in to view attached files.
    #2188

    Gavalakis
    Keymaster

    Oooh šŸ™‚ You mean the position/rotation handles. I thought you were talking about keyframe tangent handles.

    That is a good point. I will add position/rotation (possible scale as well) handles in the official Animate Properties clip. Is there any other difference?

    Join us on Discord: https://discord.gg/97q2Rjh

    #2190

    dgoyette
    Participant

    No other difference. Animate Properties was fine with that one exception of not having position/rotation handles on the object itself. That will be a useful addition.

    There was one thing I couldn’t find a way to do: Make an action clip thatĀ just showed a rotation handle. In addition to making a “Animate Transform” clip, I also thought it would be useful to create an “Animate Rotation” clip, which was only for rotations. This is useful for certain bones that only rotate but don’t translate. However, the trouble I had is that in Slate, it seems that a rotation handle requires a position handle to sync it up to. In other words, I couldn’t renderĀ just a rotation handle without also rendering a position handle. But since I was ignoring the position in my “Animate Rotation” clip, it didn’t work very well, and go out of sync.

    So, I imagine it’s pretty straightforward for Animate Properties to show a position handle. But it might be tricky to show just a rotation handle when animating only rotation. Maybe that will require decoupling the rotation and position handles from each other.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.