Profile Picture

CrazyTalk+Playmaker Unity without scripting!

Posted By Anonymous 9 Years Ago
You don't have permission to rate!
Author
Message
Anonymous
Anonymous
Posted 9 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 45, Visits: 499
In a previous post I had mentioned Playmaker (a popular visual scripting addon for Unity), and wondered whether it could be used to control a CrazyTalk character.... There are no custom Playmaker actions for CrazyTalk of course, but I got it to work, so I'm sharing here in case anyone else uses Playmaker, or wants to build a CrazyTalk "game" but is as intimidated by scripting as I am.

Very simply, I added a Playmaker FSM (Function State Machine) to my CrazyTalk character (inside the CTRoot folder).

In the start state, I used PLAY ANIMATION and assigned the idle animation to my character. The FINISHED transition loops back into itself so when the idle animation ends it will play again.


I have an event called "speak" which transitions to a second FSM. The PLAY ANIMATION action wouldn't play the CT audio, so I used PLAY SOUND and found the audio file within Unity's assets. The animation and audio play simultaneously. When FINISHED they transition back to the start state, and the idle plays again....


For a test scene I set up a separate FSM on an unseen cube trigger and positioned it "behind" the character's head. The FSM waits for a mouseclick, checks to see if you clicked within the trigger area, and then sends the "speak" event to the character's FSM. You can try the results here:



http://www.3d.wetcircuit.com/Unity3D/HiThere/HiThere.html

That's it. You could setup any number of "events" that transition to each of the character's animations... No scripting involved! Cool
Edited
9 Years Ago by Holly Wetcircuit
vidi
vidi
Posted 9 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (31.5K reputation)Distinguished Member (31.5K reputation)Distinguished Member (31.5K reputation)Distinguished Member (31.5K reputation)Distinguished Member (31.5K reputation)Distinguished Member (31.5K reputation)Distinguished Member (31.5K reputation)Distinguished Member (31.5K reputation)Distinguished Member (31.5K reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 10.8K, Visits: 40.2K
looks realy nice Smile
I use Playmaker too , I love it BigGrin

-------------------------------------------------------------------
liebe Grüße vidi




Anonymous
Anonymous
Posted 9 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)Distinguished Member (1.3K reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 45, Visits: 499
vidi (1/18/2015)
looks realy nice Smile
I use Playmaker too , I love it BigGrin


Thank you!
If you have any beginner tips please share! BigGrin
(I can use all the help I can get, lol)

Here's one I just figured out: LOOK AT enabled
1) Drag the script called CTMouseLookAt (script) from the character's inspector panel onto the Playmaker action SET PROPERTY [target object].
2) In the dropdown select Enabled.



(example: turn off Look At Enabled at the beginning of a speech and the character will stop following the mouse. Set it back on at the beginning of an idle animation...)
Edited
9 Years Ago by Holly Wetcircuit



Reading This Topic