Garry's Mod

Garry's Mod

121 beoordelingen
Playermodel Shapekey Eye Animations
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Content Type: Addon
Addon Type: Effects
Addon Tags: Build, Realism
Bestandsgrootte
Geplaatst op
Bijgewerkt op
1.764 KB
25 jul om 22:15
5 aug om 12:23
3 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Playermodel Shapekey Eye Animations

Omschrijving
A very simple script that adds flex (shapekey) based eye animations to compatible playermodels. This method of eye animation is most often utilized on stylized models, but should work for realistic models as well. Overall this method is much simpler to setup compared to source engine shader based eyes.


For Developers

If you wish to utilize this addon, you must author shapekeys that move the eyes up, down, left and right as shown in the youtube video. Each shape key must be named to its corresponding direction. For example, the shape key that moves the eyes down should be name either look_down or lookdown. The names must be all lower case. You may use either string pattern, but you must stick to that pattern. No mixing and matching lookdown with look_up for instance.

Shapekey names should be as follows:
  • lookup
  • lookdown
  • lookright
  • lookleft

or alternatively as:
  • look_up
  • look_down
  • look_right
  • look_left

I allowed for both patterns to accommodate existing models while also working with the DMX model format, which reads shapekeys with underscores as corrective, and non-editable in game.

If you run into any bugs, please provide a description of the bug as well as any applicable error messages.


Known Issues

If you override the named shapekeys used in this script using PAC3, the animation will be disabled. This is due to PAC3 automatically overriding any modified shapekeys, even if the outfit itself is removed. Restarting your session is enough to resolve this.

Tags: anime playermodel pm script animation flex eyes
23 opmerkingen
Rho  [auteur] 19 sep om 17:06 
@небо
I have yet to find a way to account for every possible string pattern in manner that is also computationally efficient. Until I can find a solution you may consider re-authoring the model in question to use one of the above patterns. I will however continue looking for a solution that works for all patterns.
Коника 17 sep om 10:52 
could i ask for you to add "Eyes-look-up" "Eyes-look-down" "Eyes-look-left" "Eyes-look-right" as a variable? this mod works very nicely!
Saturn's Ring 1 aug om 9:10 
Gave it a shot myself, and it works just how I wanted. Thank you for making this! It's a small change but it adds a lot of expression to the usually static anime style models.
Guicool 1 aug om 9:08 
@Rho
I tested it and it works perfectly. Thanks a lot for this!
Rho  [auteur] 31 jul om 22:40 
@Guicool
I added support for that pattern. Let me know if it works.
J-kun 30 jul om 8:22 
She looks like Nola from Tower of Fantasy
Guicool 29 jul om 19:03 
Hey, this is a great mod, but I found out that it didn't work correctly with 8siandude's GFL2 ports. I looked into it and found out that the eye shapekeys are called "eyes_look_right/up/down/left"

If you can add these shapekeys to be checked in the code, it'll work with the GFL2 ports, I've tested it and it works pretty well :D
PotPam 29 jul om 11:07 
funkilicious, can't wait to see people using this
Rho  [auteur] 28 jul om 19:45 
Thanks!
VAKANCY 28 jul om 15:27 
Epic work man!