Animations question...

  • #1, by denis-the-menphisWednesday, 19. June 2013, 12:53 7 years ago
    Hi guys!
    I have a little question!I it's possible in Visionaire check which frame is playing?

    For example ... i have my npc character with SOME randoms animations ..i need to set a condition... if animation 1 playing display a text "ok" else... display a text "hello"
    Thanks a lot !grin

    Newbie

    73 Posts


  • #2, by afrlmeWednesday, 19. June 2013, 15:11 7 years ago
    hmm you can assign actions to individual animation frames & you can also use Lua for checking animation frames.

    if you check the random flight script by divo in the community wiki linked above, then you will find an example of frame checking with Lua in action.

    *edit: I tried to attach some images but for some reason it doesn't want to let me.

    Imperator

    6842 Posts

  • #3, by denis-the-menphisWednesday, 19. June 2013, 17:31 7 years ago
    Thanks AFRLme for the answer!! have already seen the script but i don't understand how LUA works!!
    It's possible for you show me an example ??? Where i must put the "call" to script in visionaire ? (es. at begin of scene?)

    Newbie

    73 Posts

  • #4, by afrlmeWednesday, 19. June 2013, 19:34 7 years ago
    hmm can you not sort it by assigning actions to individual animation frames within the editor itself?

    I'm a little strapped for time at the minute for providing Lua examples - currently in the middle of designing a website for a client which I've to finish in the next couple of weeks.

    I can tell you however that what you are thinking of with call script wouldn't be the way to go about it.
    we'd use a definition script so we could set up some functions for checking either via an event listener/handler or by using the execute a script action part or a combination of both.

    I'll have a go at uploading those screenshots to my previous message & see if VS community feels like playing ball now.

    *edit: and apparently it still doesn't seem to want to let me!
    go to your character animations & click on a frame you want to assign an action to & then look for the edit frame button on the editor above the animation preview section & then assign your actions via the "action" section on the bottom left of the animation edit box that popped up. Simpler than using Lua; if you don't understand it very well or at all wink

    Imperator

    6842 Posts

  • #5, by denis-the-menphisThursday, 20. June 2013, 00:36 7 years ago
    Wow! this evening was at Canon meeting in Verona .Beautiful location and good food (and wine)!!

    I see you post now and...
    "You are a GENIUS!!! "Tomorrow (ops... today now ;D) i'll try then let you know!!!
    Thanks a lot AFRLme

    ps What it means AFRL me ?!?grin

    Newbie

    73 Posts

  • #6, by afrlmeThursday, 20. June 2013, 00:46 7 years ago
    it is an abbreviation of my company & the me part was shortened from "me please" which was taken from Amanda Show with the nerdy stalker blogger who said "please" at the end of every sentence...
    My previous username was "AFmeplease" which was supposed to mean "Alternating Frequencies me please" but err most likely most people saw it as "ass fuck me please" (probably) which doesn't look too good, as I'm not particularly into er that sort of thing myself! razz

    in this particular case however it means: Alternating Frequencies Record Label & Media.

    Imperator

    6842 Posts

  • #7, by denis-the-menphisThursday, 20. June 2013, 07:44 7 years ago
    Nice "AssFuckmeplease!!!" but not so professional i suppose!
    Ps your method..... WOoooooRK!SSS! (me satanic laughter!!! twist
    Now i have the frame control....go for the next step.
    Thanks thousand!!!

    Newbie

    73 Posts

  • #8, by afrlmeThursday, 20. June 2013, 13:55 7 years ago
    welcome & no it wasn't very professional sounding wink

    Imperator

    6842 Posts

Write post