playMaker

Author Topic: Animator - The Ultimate Timeline Cutscene Editor for Unity  (Read 11712 times)

play_edu

  • Full Member
  • ***
  • Posts: 116
Animator - The Ultimate Timeline Cutscene Editor for Unity
« on: November 07, 2012, 05:33:53 AM »
Hi,

Animator Timeline Cut scene editor is not work with play maker.it's great tool for making cinematic video.


Hear is link:
http://forum.unity3d.com/threads/135982-Animator-The-Ultimate-Timeline-Cutscene-Editor-for-Unity
« Last Edit: November 07, 2012, 05:37:14 AM by play_edu »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #1 on: November 07, 2012, 05:56:10 AM »
Hi,

 what would you like seeing accessible from playmaker? and what exactly do not work with playmaker? what function in particular?

bye,

 Jean

play_edu

  • Full Member
  • ***
  • Posts: 116
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #2 on: November 07, 2012, 06:26:10 AM »
Hi,


like this fsm action or hear is link http://forum.unity3d.com/threads/123270-Aperture-Cutscene-Editor-RELEASED/page2

    using System;
    using UnityEngine;
    
    namespace HutongGames.PlayMaker.Actions
    {
        [ActionCategory(ActionCategory.Animation)]
        [Tooltip("Plays an Aperture Cutscene on a Game Object.")]
        public class PlayApertureCutscene : FsmStateAction
        {
            [RequiredField]
            [CheckForComponent(typeof(Cutscene))]
            [Tooltip("Game Object which has a cutscene.")]
            public FsmOwnerDefault gameObject;
          
            [Tooltip("Event to send when the cutscene has finished playing. NOTE: Not sent with Loop mode!")]
            public FsmEvent finishEvent;
    
            [Tooltip("Event to send when the cutscene loops. If you want to send this event to another FSM use Set Event Target. NOTE: This event is only sent with Loop mode.")]
            public FsmEvent loopEvent;
    
            [Tooltip("Stop playing the cutscene when this state is exited.")]
            public bool stopOnExit;
          
            [Tooltip("Loop the cutscene.")]
            public bool loopCutscene;
          
            [Tooltip("Play the cutscene in reverse. Only works if the cutscene has already been played forwards by some amount.")]
            public bool reverseCutscene;
          
            public override void Reset()
            {
                gameObject = null;
                finishEvent = null;
                loopEvent = null;
                stopOnExit = false;
                loopCutscene = false;
                reverseCutscene = false;
            }
    
            public override void OnEnter()
            {
                DoPlayCutscene();
            }
    
            void DoPlayCutscene()
            {
                var go = Fsm.GetOwnerDefaultTarget(gameObject);
                if (go == null)
                {
                    Finish();
                    return;
                }
                Cutscene thecutscene = go.GetComponent<Cutscene>();
                if (thecutscene == null)
                {
                    LogWarning("Missing cutscene component!");
                    Finish();
                    return;
                }
                if (loopCutscene)
                {
                    thecutscene.loop = true;
                }
                else
                {  
                    thecutscene.loop = false;
                }
                if (reverseCutscene)
                {
                    thecutscene.Rewind();
                }
                else
                {  
                    thecutscene.Play();
                }
              
              
            }
    
            public override void OnUpdate()
            {
                var go = Fsm.GetOwnerDefaultTarget(gameObject);
                if (go == null)
                {
                    return;
                }
                Cutscene thecutscene = go.GetComponent<Cutscene>();
              
                if (thecutscene == null)
                {
                    LogWarning("Missing cutscene component!");
                    Finish();
                    return;
                }
              
                if (!thecutscene.playing && !reverseCutscene)
                {
                    Fsm.Event(finishEvent);
                    Finish();
                }
              
                if (reverseCutscene && (thecutscene.totalPlays == 0))
                {
                    Fsm.Event(finishEvent);
                    Finish();
                }
                if (loopCutscene && (thecutscene.totalPlays > 1))
                {
                    Fsm.Event(loopEvent);
                }
            }
    
            public override void OnExit()
            {
                if (stopOnExit)
                {
                    StopCutscene();
                }
            }
    
            void StopCutscene()
            {
                var go = Fsm.GetOwnerDefaultTarget(gameObject);
                if (go != null)
                {  
                    Cutscene thecutscene = go.GetComponent<Cutscene>();
                    if (thecutscene !=null)
                    {
                        thecutscene.Stop();
                    }
                }
            }
        }
    }

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #3 on: November 08, 2012, 05:34:35 AM »
Hi,

 Ok, and what doesn't work there? Are you elbows on the unity forum?

bye,

 Jean

3d_Artist1987

  • Beta Group
  • Full Member
  • *
  • Posts: 157
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #4 on: November 08, 2012, 06:23:58 AM »
hi,

play,pause and stop Animator via playmaker fsm.

thanks in advance.

dev
« Last Edit: November 08, 2012, 06:27:04 AM by dev_xrt »

play_edu

  • Full Member
  • ***
  • Posts: 116
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #5 on: November 08, 2012, 06:39:39 AM »
Hi,

Thanks for replay,

cut scene editor or animator are different  plugins . But Animator is Advanced. I cant accesses any component.
like camera switching, Animation,Evan not Work get property, set property  etc.  



Bye,

Play_edu
« Last Edit: November 08, 2012, 06:41:29 AM by play_edu »

3d_Artist1987

  • Beta Group
  • Full Member
  • *
  • Posts: 157
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #6 on: November 18, 2012, 02:02:29 AM »
any update? ??? ???


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #7 on: November 19, 2012, 12:34:15 AM »
Hi,

 Coming up this week :)

bye,

 Jean

3d_Artist1987

  • Beta Group
  • Full Member
  • *
  • Posts: 157
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #8 on: November 21, 2012, 10:46:16 PM »
Hi,

Thank you

Dev

play_edu

  • Full Member
  • ***
  • Posts: 116
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #9 on: November 26, 2012, 06:15:37 AM »
HI,


any update?



play_edu :'(

3d_Artist1987

  • Beta Group
  • Full Member
  • *
  • Posts: 157
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #10 on: December 07, 2012, 05:32:12 AM »
any update ??? ???

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #11 on: December 11, 2012, 05:09:15 PM »
Hi,

 Sorry guys... got carried away with a lot of other things. Must allocated some time to do this!

 bye,

 Jean

3d_Artist1987

  • Beta Group
  • Full Member
  • *
  • Posts: 157
Re: Animator - The Ultimate Timeline Cutscene Editor for Unity
« Reply #12 on: December 13, 2012, 12:20:01 AM »
ok :)