Please login or register.

Login with email, password and session length
 

News:

Happy 15th Birthday, Freedom Force!


Author Topic: Keyframes question  (Read 153 times)

Offline bungs2001

  • Jr. Member
  • Posts: 92
Keyframes question
« on: May 14, 2017, 08:22:59 AM »
Hi is it possible to move a melee action you can use in active defense, into the list for your melee attacks. There is one I really like buts it's only selectable as an active defense. Hope that makes sense  :banghead: :thumbup:

Offline detourne_me

  • Hero Member
  • Posts: 5759
  • Manipulator of mental motion sickness
    • Force of Paradox!
Re: Keyframes question
« Reply #1 on: May 14, 2017, 01:34:22 PM »
Hi,  That should be pretty simple.  You just need to add a 'contact' to the Text Keys.
Here's something I wrote for another user,  but you can follow the same steps to add a contact to the active_defence animation.
Quote
In Nifskope, look at the NiTextKeyExtraData in the Block List. In Block Details open up the Text Keys branches.

You can add contact, leave_hand, and other things here. 
For Teleport you need to add "disappear" and "appear" Text Keys.

So, for idle_3, change the Num Text Keys from 2 to 4, and click the green refresh icon to add two more text keys.
They will be added to the bottom.
You need to make the last one "end", so set the Time at 2.0 seconds, and set the Value to "end"
Next, you need to make a "disappear" and an "appear" for the 2 middle Text Keys.   You should set the Time at what you think is good. maybe 0.5 for disappear and 1.5 for appear?

Use the same technique to add leave_hand or contact to other keyframes too.


You would want to add one more Text Key to the number, refresh it with the green symbol, and then move the 'end' text key to the bottom, and turn one of the middle text keys into 'contact' and give it a time between the start and end.

Offline bungs2001

  • Jr. Member
  • Posts: 92
Re: Keyframes question
« Reply #2 on: May 14, 2017, 03:30:45 PM »
Hi thanks for the help. I won't pretend you haven't confused the he'll out of me. But will give it a bash later. Thank you :thumbup:

Offline bungs2001

  • Jr. Member
  • Posts: 92
Re: Keyframes question
« Reply #3 on: May 14, 2017, 05:46:54 PM »
Hi Dm the animation I am trying to use as a melee attack is on your great Kanan rebels mesh, it's melee saber a(only usable as a active defense), I can see what's different in the nif Skope. Sorry I am a noob  :banghead:.

Offline detourne_me

  • Hero Member
  • Posts: 5759
  • Manipulator of mental motion sickness
    • Force of Paradox!
Re: Keyframes question
« Reply #4 on: May 15, 2017, 01:22:37 PM »
melee_saber_a from the Kanan mesh is used for melee attacks, you shouldn't need to change it.
When you see melee_a, melee_b, melee_c etc. they play randomly. You can make one power using melee_saber, and sometimes the animation melee_saber_a will play.
If you want to create a separate power for that animation only, you can rename it to melee_saber_2. or something else.

Here are some tips for keyframes:
melee attacks can be named anything, as long as there is a 'contact' written in the Text Keys.
Only melee keyframes can have random animations. You can have up to 8 random animations for each attack,  name the keyframes melee, melee_a, melee_b,... up to melee_f.

Offline bungs2001

  • Jr. Member
  • Posts: 92
Re: Keyframes question
« Reply #5 on: May 15, 2017, 06:09:58 PM »
Brilliant got it thanks for taking the time to explain  :thumbup:

Offline stumpy

  • treselgonian dementialist
  • Administrator
  • Hero Member
  • Posts: 4352
Re: Keyframes question
« Reply #6 on: May 17, 2017, 04:02:08 AM »
This is a good thread with a good question and answers. But, it really doesn't belong in the scripting section and I am glad d_m noticed it here and replied.

Quick question: Would it be more appropriate in the Mesh section or in the Hex Editing section? I will move it there in a few days.
Currently reading: High Mage (The Spellmonger Series) by Terry Mancour
Just finished reading: Pelya (The Dralin Trilogy) by John H. Carrol

Offline detourne_me

  • Hero Member
  • Posts: 5759
  • Manipulator of mental motion sickness
    • Force of Paradox!
Re: Keyframes question
« Reply #7 on: May 17, 2017, 08:45:21 AM »
Good point, Stumpy.  I think Hex Editing would be best, since most nifskope related content is there.

Offline bungs2001

  • Jr. Member
  • Posts: 92
Re: Keyframes question
« Reply #8 on: May 17, 2017, 05:13:22 PM »
Hi sorry for putting it in the wrong section I was really unsure where to put it.  :banghead: :thumbup:

Offline stumpy

  • treselgonian dementialist
  • Administrator
  • Hero Member
  • Posts: 4352
Re: Keyframes question
« Reply #9 on: May 18, 2017, 03:48:25 AM »
No worries. I just want it to be in the place where people interested will see it.
Currently reading: High Mage (The Spellmonger Series) by Terry Mancour
Just finished reading: Pelya (The Dralin Trilogy) by John H. Carrol