Object animation's "saved" state

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Re: Object animation's "saved" state

Postby boblishman » Sat Jul 19, 2008 11:18 am

you´re a STAR D'Lanor (as usual) ... I'll get working on this tomorrow ... THANK YOU!! ... :)
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Object animation's "saved" state

Postby diafero » Sun Jul 20, 2008 4:53 am

Looks cool :D
Now, is it also possible to synchronize that with an animation of the avatar touching the button without using custom Python? That'd be the kind of elegant solution I like :)
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: Object animation's "saved" state

Postby D'Lanor » Sun Jul 20, 2008 8:53 am

Yes, that is possible. I left out the oneshotmod for the avatar animation to keep the demo simple. With avatar animation it would look like this:

Code: Select all
<clickable>:
    logic:
        modifiers:
          - tag: AutoClick
            cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: <click region>
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: pythonfile
                ref: $BoolToggle
              - type: oneshot
                ref: $AutoClick
        actions:
          - type: pythonfile
            tag: BoolToggle
            pythonfile:
                file: xAgeSDLBoolToggle
                parameters:
                  - type: activator
                    ref: logicmod:$AutoClick
                  - type: string
                    value: DoorOpen
                  - type: skip
                  - type: skip
                  - type: string
                    value: DoorOpen
          - type: pythonfile
            tag: BoolRespond
            pythonfile:
                file: xAgeSDLBoolRespond
                parameters:
                  - type: string
                    value: DoorOpen
                  - type: responder
                    ref: $AnimOpen
                  - type: responder
                    ref: $AnimClose
                  - type: bool
                    value: false
                  - type: bool
                    value: true
          - type: responder
            tag: AnimOpen
            responder:
               states:
                - cmds:
                   - type: animcmdmsg
                     params:
                        receivers:
                         - 006D:<animated object>
                        animname: Open
                        cmds:
                         - continue
                     waiton: -1
                  nextstate: 1
                  waittocmd: 0
               curstate: 0
               flags:
                  - detecttrigger
          - type: responder
            tag: AnimClose
            responder:
               states:
                - cmds:
                   - type: animcmdmsg
                     params:
                        receivers:
                         - 006D:<animated object>
                        animname: Close
                        cmds:
                         - continue
                     waiton: -1
                  nextstate: 1
                  waittocmd: 0
               curstate: 0
               flags:
                  - detecttrigger
          - type: oneshot
            tag: AutoClick
            oneshot:
                animation: <animation name>
                seektime: 1.0
                remote: <animtarget>
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Object animation's "saved" state

Postby D'Lanor » Tue Jul 22, 2008 1:07 am

btw, don't even think about using the global python script method above for an Ahra Pahts shell. The paging mechanism will screw up its initialization.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Object animation's "saved" state

Postby boblishman » Wed Jul 23, 2008 5:42 am

ok... with D'Lanor's help this is now working perfectly ... I have added a new wiki page with an example of how to use this with synchronised sounds and avatar animations ... HERE
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Previous

Return to Building

Who is online

Users browsing this forum: No registered users and 3 guests

cron