Animations question...

  • #1, z denis-Wednesday, 19. June 2013, 12:53 hodinky 12 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

    Bažant

    74 Posts


  • #2, z afrlmeWednesday, 19. June 2013, 15:11 hodinky 12 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.

    Imperátor

    7285 Posts

  • #3, z denis-Wednesday, 19. June 2013, 17:31 hodinky 12 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?)

    Bažant

    74 Posts

  • #4, z afrlmeWednesday, 19. June 2013, 19:34 hodinky 12 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

    Imperátor

    7285 Posts

  • #5, z denis-Thursday, 20. June 2013, 00:36 hodinky 12 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

    Bažant

    74 Posts

  • #6, z afrlmeThursday, 20. June 2013, 00:46 hodinky 12 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.

    Imperátor

    7285 Posts

  • #7, z denis-Thursday, 20. June 2013, 07:44 hodinky 12 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!!!

    Bažant

    74 Posts

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

    Imperátor

    7285 Posts