A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »multiple animation sequences

Author Topic: multiple animation sequences (13 messages, Page 1 of 1)
Moderators: Dennis

hoboscience
Joined: Apr 22, 2011


Posted: Dec 1, 2011 10:45 AM    Msg. 1 of 13       
So I have discovered the frame limit to a scenery object is 2000. Unfortunately I have a 4000 framed animation I would like to export. I know what everyone reading this is thinking "why do you need an animation that is 4000 frames". It's a simple scenery animation with a mouse droid moving along the floor. I stretched the 4000 framed animation down to 2000, but unfortunately it moves to fast. I can dumb down the animation but I would appreciate keeping it at the length it's currently set at. Is there a way I can trigger several animation sequences to play one after the other? For Example, after the first animation would be complete, instead of restarting it would move to a second, then third animation. I noticed a "next animation" option at the bottom of my animation tag, but unfortunately I could not accomplish anything when toying around with that.

Thanks Again.


cyboryxmen
Joined: Nov 7, 2010

--CG artist-- New mission. Refuse this Mission!


Posted: Dec 11, 2011 10:58 AM    Msg. 2 of 13       
You mean permutastions? Yeah, it's possible. Let me get my good old script book.

(scenery_animation_start <scenery> <animation_graph> <string>)


This should help you. You need to give the scenery it's own name in Sapien though and I think you can leave the string as "" with the quotations.
-Zekilk


hoboscience
Joined: Apr 22, 2011


Posted: Dec 11, 2011 02:41 PM    Msg. 3 of 13       
Thanks for your help.

So let me get this right.
I have two animations. Mouse and Mouse1. I want Mouse 1 to play immediately after mouse. The scenery objects is named mouse_scenery. Would the script look like this?

(scenery_animation_start <mouse_scenery> <mouse> <mouse1> <string>)


XlzQwerty1
Joined: Aug 6, 2009


Posted: Dec 11, 2011 02:46 PM    Msg. 4 of 13       
Oh my gosh thanks for the info. I was wondering how to do this as well, but I suck with scripts... Can you possibly post the example for two animation sequences from above (mouse + mouse1)?


cyboryxmen
Joined: Nov 7, 2010

--CG artist-- New mission. Refuse this Mission!


Posted: Dec 11, 2011 08:41 PM    Msg. 5 of 13       
Well actually,

(script continuous theundergroundmousepeople
(scenery_animation_start mouse_scenery mouse "")
(sleep_until (not (scenery_get_animation_time mouse_scenery)))
(scenery_animation_start mouse_scenery mouse1 "")
)


the code:
(scenery_get_animation_time mouse_scenery)


will return as 0(false) if the animation has finished. So, the script would sleep_until the animation is
(not <false statement>)

and the script would play the next animation seamlessly.
-Zekilk
Edited by cyboryxmen on Dec 11, 2011 at 08:49 PM


hoboscience
Joined: Apr 22, 2011


Posted: Dec 11, 2011 09:05 PM    Msg. 6 of 13       
thanks for helping me here

I know I'm probably making this more difficult then what it really is...but I tried the script with no luck. My error reads:


12.11.11 15:25:35 recompiling scripts after scenarios were merged.
12.11.11 15:25:35 this left parenthesis is unmatched.: (script continuous Vehicle_Tele

This is placed after a few vehicle teleports I have places and working properly.

)
(if (= (volume_test_object Warp45Enter luke6) true)
(object_teleport luke6 Warp45Exit)
)
(if (= (volume_test_object Warp45Enter milf1) true)
(object_teleport milf1 Warp45Exit)
)
)
(script continuous theundergroundmousepeople
(scenery_animation_start mouse_scenery mouse "")
(sleep_until (not (scenery_get_animation_time mouse_scenery)))
(scenery_animation_start mouse_scenery mouse1 "")
)
)
Edited by hoboscience on Dec 11, 2011 at 09:08 PM


cyboryxmen
Joined: Nov 7, 2010

--CG artist-- New mission. Refuse this Mission!


Posted: Dec 11, 2011 09:45 PM    Msg. 7 of 13       
Check your vehicle tele script. See if you have any brackets missing
-Zekilk
Edited by cyboryxmen on Dec 11, 2011 at 09:45 PM


hoboscience
Joined: Apr 22, 2011


Posted: Dec 11, 2011 10:21 PM    Msg. 8 of 13       
12.11.11 22:19:56 [Vehicle_Tele line 1798] this is not a reference to a animation_graph tag.: mouse "")

12.11.11 22:19:56 recompiling scripts after scenarios were merged.
12.11.11 22:20:00 [Vehicle_Tele line 1797] this left parenthesis is unmatched.: (script continuous theundergroundmousepeople


)
(script continuous theundergroundmousepeople -1797
(scenery_animation_start mouse_scenery mouse "") -1798
(sleep_until (not (scenery_get_animation_time mouse_scenery)))
(scenery_animation_start mouse_scenery mouse1 "")
)
)
Edited by hoboscience on Dec 11, 2011 at 10:23 PM


test01
Joined: Sep 29, 2011


Posted: Dec 12, 2011 12:18 AM    Msg. 9 of 13       
I'm not sure exactly whats up with the first error. the animation_graph tag in sapien probably hasn't been added in properly or something. Not quite sure

As for the script:

(script continuous theundergroundmousepeople
(scenery_animation_start mouse_scenery mouse "")
(sleep_until (not (scenery_get_animation_time mouse_scenery)))
(scenery_animation_start mouse_scenery mouse1 ""))

or maybe this:

(script continuous theundergroundmousepeople
(scenery_animation_start mouse_scenery mouse "")
(sleep_until (= (scenery_get_animation_time mouse_scenery) 0))
(scenery_animation_start mouse_scenery mouse1 ""))


try them, see if the second error dissapears


hoboscience
Joined: Apr 22, 2011


Posted: Dec 12, 2011 12:46 AM    Msg. 10 of 13       
Thanks...your right...the bottom script fixed the one error....one down..one to go.


cyboryxmen
Joined: Nov 7, 2010

--CG artist-- New mission. Refuse this Mission!


Posted: Dec 12, 2011 02:33 AM    Msg. 11 of 13       
did you remember to define the tag in the globals?

(global object_definition <name> <tagpath in the tag folder>)


Example,
(global object_definition assault_rifle "weapons\assault rifle\assault rifle")

-Zekilk
Edited by cyboryxmen on Dec 12, 2011 at 02:34 AM


hoboscience
Joined: Apr 22, 2011


Posted: Dec 12, 2011 08:21 PM    Msg. 12 of 13       
no I did not do that, nor do I really understand what to do with this information. I scanned the globals.globals file but could not find anywhere appropriate to insert this. Could you be more specific, and thanks for your patience with my inexperienced tag editing on this.


cyboryxmen
Joined: Nov 7, 2010

--CG artist-- New mission. Refuse this Mission!


Posted: Dec 13, 2011 12:47 AM    Msg. 13 of 13       
Put it at the top of the script.
-Zekilk
Edited by cyboryxmen on Dec 13, 2011 at 12:47 AM

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 9:39 AM 140 ms.
A Halo Maps Website