Garry's Mod

Garry's Mod

86 ratings
Playermodel Shapekey Eye Animations
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Build, Realism
File Size
Posted
Updated
1.764 KB
25 Jul @ 10:15pm
5 Aug @ 12:23pm
3 Change Notes ( view )

Subscribe to download
Playermodel Shapekey Eye Animations

Description
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 script animation flex eyes
21 Comments
Saturn's Ring 1 Aug @ 9:10am 
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 @ 9:08am 
@Rho
I tested it and it works perfectly. Thanks a lot for this!
Rho  [author] 31 Jul @ 10:40pm 
@Guicool
I added support for that pattern. Let me know if it works.
J-kun 30 Jul @ 8:22am 
She looks like Nola from Tower of Fantasy
Guicool 29 Jul @ 7:03pm 
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 @ 11:07am 
funkilicious, can't wait to see people using this
Rho  [author] 28 Jul @ 7:45pm 
Thanks!
VAKANCY 28 Jul @ 3:27pm 
Epic work man!
Rho  [author] 28 Jul @ 10:58am 
@Foof
No, the script only effects the shapekeys as mentioned in the description. It should not mess with jaw_drop.
邪魅霸天 28 Jul @ 4:55am 
Sorry for disturbing