Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: Carmichael on July 15, 2017, 09:39:59 PM

Title: unity timeline actions?
Post by: Carmichael on July 15, 2017, 09:39:59 PM
hi, Should we be expecting some unity time line actions for unity 2017?
Title: Re: unity timeline actions?
Post by: tcmeric on July 16, 2017, 12:30:07 AM
I am open to requests. I havent had too much of a chance to look through timeline yet, but anything in specific that you want, to kick us off?
Title: Re: unity timeline actions?
Post by: tcmeric on July 16, 2017, 02:26:12 AM
Ive started some playmaker unity timeline actions here: https://github.com/dumbgamedev/timeline-playmaker

So far, play (start) timeline, stop timeline and pause timeline. Enough to help you follow along with this tutorial/presentation at Unite a few days ago. https://www.youtube.com/watch?v=oZRp8c1Wv-o

About 15 actions so far.

I will push them to the ecosystem once we have more actions for timeline. But they are completely usable now  8)

Title: Re: unity timeline actions?
Post by: tcmeric on July 17, 2017, 12:29:25 AM
I created a simple tutorial that introduces timeline and how to use it with playmaker. This is part 1 but it will get most people started  8) https://www.youtube.com/watch?v=dTK2TLBtT6g&feature=youtu.be
Title: Re: unity timeline actions?
Post by: Carmichael on July 17, 2017, 04:02:04 PM
wow thanks for this!
Title: Re: unity timeline actions?
Post by: Gustav on July 21, 2017, 08:43:43 AM
tcmeric, thanks a lot! :)
Title: Re: unity timeline actions?
Post by: tcmeric on July 21, 2017, 10:34:37 AM
Ive added another key action. This will be in my third tutorial, but if you want to get started using it now, its a playmaker/timeline proxy.

https://github.com/dumbgamedev/timeline-playmaker/tree/master/proxy

You drag and drop script (called playmakerTimelineEvent.cs) into the timeline on a new track (a new track will be created automatically). Then position the script on the timeline when you want it to fire. (The event will fire at the start of the script position on the timeline. The length of the script on the timeline does not matter).

Setup:

1. Click on the script in the timeline to set the options in the inspector.
2. Choose the gameobject that holds your playmaker FSM (or choose global to send event to all playmaker FSM in the scene). In this case no gameobject is necessary.

If your gameobject has more than one FSM, it will send the event to the first FSM only (if not global).

3. Type the name of your event you want it to trigger in playmaker. Ie, "TriggerMe". Spelling matters  ;)

In playmaker.

1. Make a new event. Name the event the same as the proxy on the timeline. Ie "TriggerMe".
2. Add this event to a state, by right click on the state. Then choose "Add global transition". Choose "TriggerMe". It will then appear above the state (like the start state does).

Now when the timeline reaches the proxy script, it will fire your playmaker event. You can use as many proxy scripts on a timeline as you would like.

Title: Re: unity timeline actions?
Post by: Carmichael on July 22, 2017, 02:11:57 PM
you're the best man!
Title: Re: unity timeline actions?
Post by: Carmichael on July 22, 2017, 02:16:26 PM
i'm not too familiar with github please, how do  download the script, theres no download option there, thanks
Title: Re: unity timeline actions?
Post by: tcmeric on July 22, 2017, 05:40:36 PM
No worries. See my attached image. Click that green button at the root of the repository (directory), to download a zip file. Unzip the file and put the folder into your unity assets folder. It will then automatically be recognized by playmaker and compile. After that, it should be visible in your playmaker actions browser.
Title: Re: unity timeline actions?
Post by: Carmichael on July 22, 2017, 07:53:23 PM
this is what i see now, am i meant to re-download the entire folder?
Title: Re: unity timeline actions?
Post by: tcmeric on July 23, 2017, 02:17:24 AM
Yes, you will need to download the entire folder from the root. If you right click and save as on the one file, it will download, but it will be corrupted. The browser will add a bunch of its own code to the CS file.
Title: Re: unity timeline actions?
Post by: Kubold on September 13, 2017, 11:26:34 AM
How do you set the references in Animation tracks ("Bindings" section of the Director) in Timeline at runtime?

Because in my game the characters are spawned, they are not on the level until the game runs, so I can't reference them manually. Set Property Action doesn't give you access to "Bindings" section of the Playable Director.

I believe it's called PlayableDirector.SetGenericBinding, but I know absolutely nothing about coding.

Can you make an Action for that please?
Title: Re: unity timeline actions?
Post by: Kubold on October 05, 2017, 08:28:30 AM
bump!

Can we have a PlayableDirector.SetGenericBinding Action?

As in the Unity Staff member answers in this post: https://forum.unity.com/threads/set-playabledirector-bindings-from-script.487337/
Title: Re: unity timeline actions?
Post by: craigz on October 10, 2017, 10:08:28 AM
bump!

Wanted to also chime in about how useful a PlayableDirector.SetGenericBinding action would be :)

-craigz
Title: Re: unity timeline actions?
Post by: jeanfabre on October 10, 2017, 11:23:17 PM
Hi,

 yes, I'll work on this, but I first need to take the time to properly understand this as I haven't yet grasp how the timeline should be use. Need to document myself and learn it.

 bye,

 Jean