Orient 3D to Motion Path

Moderator: SecondMan

User avatar
bowserlm
Fusionista
Posts: 334
Joined: Sat Apr 28, 2018 3:44 pm
Been thanked: 6 times

Orient 3D to Motion Path

#1

Post by bowserlm » Sun Jun 30, 2019 11:33 am

What would be the way to set up a 3D object to automatically orient it's rotation along it's animation path in 3D?

User avatar
ShadowMaker SdR
Fusionista
Posts: 630
Joined: Sun Sep 21, 2014 6:17 am
Answers: 4
Been thanked: 14 times

Re: Orient 3D to Motion Path

#2

Post by ShadowMaker SdR » Sun Jun 30, 2019 12:22 pm

When I need to do this, I usually use a target for the 3D object that has the same animation as the 3D object, but offset in time, so that it's chasing its own target.

User avatar
bowserlm
Fusionista
Posts: 334
Joined: Sat Apr 28, 2018 3:44 pm
Been thanked: 6 times

Re: Orient 3D to Motion Path

#3

Post by bowserlm » Sun Jun 30, 2019 12:23 pm

How would you go about rigging that up?

Say I've already got a animation set up.

User avatar
ShadowMaker SdR
Fusionista
Posts: 630
Joined: Sun Sep 21, 2014 6:17 am
Answers: 4
Been thanked: 14 times

Re: Orient 3D to Motion Path

#4

Post by ShadowMaker SdR » Sun Jun 30, 2019 12:27 pm

I don't know if it's the best way (expressions might be better) but I'd right-click the XYZ of the target and modify with 'offset' then I'd link the value of those modifiers to the XYZ of the object and use the time offset in the modifier to determine how many frames the target's going to lead.

User avatar
bowserlm
Fusionista
Posts: 334
Joined: Sat Apr 28, 2018 3:44 pm
Been thanked: 6 times

Re: Orient 3D to Motion Path

#5

Post by bowserlm » Sun Jun 30, 2019 12:33 pm

I just came across this other post where @SirEdric posted a comp with expressions and a 'Look Ahead Time' slider.

viewtopic.php?f=16&t=2482

Curious how I would add that to an already existing 3DTransform animation.

Added in 6 minutes 47 seconds:
@ShadowMaker SdR Trying to recreate your description above -- Are you using Offset Distance or Offset Angle? Offset Distance looks like it's wanting an X,Y parameter. I'm not sure how to attach the parameters to the XYZ Offset.

User avatar
ShadowMaker SdR
Fusionista
Posts: 630
Joined: Sun Sep 21, 2014 6:17 am
Answers: 4
Been thanked: 14 times

Re: Orient 3D to Motion Path

#6

Post by ShadowMaker SdR » Sun Jun 30, 2019 12:57 pm

RIght. I messed up. It's a calculation and there's an offset *in* the calculation modifier. The topic you're linking to most likely will contain all the information you'll need. (for this situation)

User avatar
SirEdric
Fusionator
Posts: 1873
Joined: Tue Aug 05, 2014 10:04 am
Answers: 2
Real name: Eric Westphal
Been thanked: 112 times
Contact:

Re: Orient 3D to Motion Path

#7

Post by SirEdric » Sun Jun 30, 2019 1:02 pm

bowserlm wrote:
Sun Jun 30, 2019 12:40 pm
Curious how I would add that to an already existing 3DTransform animation.
It should work by just copy&paste the expressions into your XF3D's controls.
Prior to that RMB on the tool -> Edit Controls and add the LookAheadTime slider...:-)

User avatar
bowserlm
Fusionista
Posts: 334
Joined: Sat Apr 28, 2018 3:44 pm
Been thanked: 6 times

Re: Orient 3D to Motion Path

#8

Post by bowserlm » Sun Jun 30, 2019 2:34 pm

I wonder if a script could be made that would give this functionality to anything that has 3D parameters, like Shapes, Transforms, 3DMerge, etc.

User avatar
SirEdric
Fusionator
Posts: 1873
Joined: Tue Aug 05, 2014 10:04 am
Answers: 2
Real name: Eric Westphal
Been thanked: 112 times
Contact:

Re: Orient 3D to Motion Path

#9

Post by SirEdric » Mon Jul 01, 2019 12:25 am

Well....since you were wondering I thought this might be phun solving...:-)

So here we go with a rather basic first implementation.
It's a toolScript, so it goes into %AppData%\Blackmagic Design\Fusion\Scripts\Tool

It *only* works on 3D Tools with a Use Target option.

Generally....save your work before running this script!

If your tool's Offset is already animated to your needs, you should be fine.
If you want to animate it after setting the expressions, de-activate the Use Target switch while animating the offset
for much faster interactivity and better stability.

Lemme know what you think & have Phun.

Eric.
You do not have the required permissions to view the files attached to this post.

User avatar
bowserlm
Fusionista
Posts: 334
Joined: Sat Apr 28, 2018 3:44 pm
Been thanked: 6 times

Re: Orient 3D to Motion Path

#10

Post by bowserlm » Tue Jul 02, 2019 4:45 pm

That works great @SirEdric !! Thanks a ton for putting that together! That should be on Reactor ASAP!