Posted 4 years ago
·
Author
Posted 4 years ago
@Ubiytsa
Derive from a male or female avatar (PID 80 or 191)
Create a new asset named blink.xpf
This will override the default blink.xpf used by the avatar.
Here default code that goes inside of blink.xpf
<HEADER MAGIC="XPF" VERSION="919" />
<ANIMATION NUMTRACKS="80" DURATION="0.2">
<TRACK NUMKEYFRAMES="20" MORPHNAME="blink.Left.Lower.Clamped">
<KEYFRAME TIME="0.0" >
<WEIGHT>0.0</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.01" >
<WEIGHT>0.05</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.02" >
<WEIGHT>0.10</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.03" >
<WEIGHT>0.15</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.04" >
<WEIGHT>0.20</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.05" >
<WEIGHT>0.25</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.06" >
<WEIGHT>0.30</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.07" >
<WEIGHT>0.35</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.08" >
<WEIGHT>0.40</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.09" >
<WEIGHT>0.45</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.10" >
<WEIGHT>0.50</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.11" >
<WEIGHT>0.55</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.12" >
<WEIGHT>0.60</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.13" >
<WEIGHT>0.65</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.14" >
<WEIGHT>0.70</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.15" >
<WEIGHT>0.75</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.16" >
<WEIGHT>0.80</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.17" >
<WEIGHT>0.85</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.18" >
<WEIGHT>0.90</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.19" >
<WEIGHT>0.95</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.20" >
<WEIGHT>1.00</WEIGHT>
</KEYFRAME>
</TRACK>
<TRACK NUMKEYFRAMES="20" MORPHNAME="blink.Left.Upper.Clamped">
<KEYFRAME TIME="0.0" >
<WEIGHT>0.0</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.01" >
<WEIGHT>0.05</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.02" >
<WEIGHT>0.10</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.03" >
<WEIGHT>0.15</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.04" >
<WEIGHT>0.20</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.05" >
<WEIGHT>0.25</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.06" >
<WEIGHT>0.30</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.07" >
<WEIGHT>0.35</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.08" >
<WEIGHT>0.40</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.09" >
<WEIGHT>0.45</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.10" >
<WEIGHT>0.50</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.11" >
<WEIGHT>0.55</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.12" >
<WEIGHT>0.60</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.13" >
<WEIGHT>0.65</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.14" >
<WEIGHT>0.70</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.15" >
<WEIGHT>0.75</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.16" >
<WEIGHT>0.80</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.17" >
<WEIGHT>0.85</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.18" >
<WEIGHT>0.90</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.19" >
<WEIGHT>0.95</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.20" >
<WEIGHT>1.00</WEIGHT>
</KEYFRAME>
</TRACK>
<TRACK NUMKEYFRAMES="20" MORPHNAME="blink.Right.Lower.Clamped">
<KEYFRAME TIME="0.0" >
<WEIGHT>0.0</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.01" >
<WEIGHT>0.05</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.02" >
<WEIGHT>0.10</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.03" >
<WEIGHT>0.15</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.04" >
<WEIGHT>0.20</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.05" >
<WEIGHT>0.25</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.06" >
<WEIGHT>0.30</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.07" >
<WEIGHT>0.35</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.08" >
<WEIGHT>0.40</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.09" >
<WEIGHT>0.45</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.10" >
<WEIGHT>0.50</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.11" >
<WEIGHT>0.55</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.12" >
<WEIGHT>0.60</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.13" >
<WEIGHT>0.65</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.14" >
<WEIGHT>0.70</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.15" >
<WEIGHT>0.75</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.16" >
<WEIGHT>0.80</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.17" >
<WEIGHT>0.85</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.18" >
<WEIGHT>0.90</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.19" >
<WEIGHT>0.95</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.20" >
<WEIGHT>1.00</WEIGHT>
</KEYFRAME>
</TRACK>
<TRACK NUMKEYFRAMES="20" MORPHNAME="blink.Right.Upper.Clamped">
<KEYFRAME TIME="0.0" >
<WEIGHT>0.0</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.01" >
<WEIGHT>0.05</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.02" >
<WEIGHT>0.10</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.03" >
<WEIGHT>0.15</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.04" >
<WEIGHT>0.20</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.05" >
<WEIGHT>0.25</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.06" >
<WEIGHT>0.30</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.07" >
<WEIGHT>0.35</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.08" >
<WEIGHT>0.40</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.09" >
<WEIGHT>0.45</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.10" >
<WEIGHT>0.50</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.11" >
<WEIGHT>0.55</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.12" >
<WEIGHT>0.60</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.13" >
<WEIGHT>0.65</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.14" >
<WEIGHT>0.70</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.15" >
<WEIGHT>0.75</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.16" >
<WEIGHT>0.80</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.17" >
<WEIGHT>0.85</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.18" >
<WEIGHT>0.90</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.19" >
<WEIGHT>0.95</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.20" >
<WEIGHT>1.00</WEIGHT>
</KEYFRAME>
</TRACK>
</ANIMATION>
But Don, what does all of this code mean?
Let's start with:
The above line of code says that the duration of the blink animation should last 0.2 sections. Increase this number to allow the blink to last longer / make it slower. Decrease this number to make the blink not last as long / faster.
Now, notice this part of the code:
<TRACK NUMKEYFRAMES="20" MORPHNAME="blink.Left.Lower.Clamped">
<KEYFRAME TIME="0.0" >
<WEIGHT>0.0</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.01" >
<WEIGHT>0.05</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.02" >
<WEIGHT>0.10</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.03" >
<WEIGHT>0.15</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.04" >
<WEIGHT>0.20</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.05" >
<WEIGHT>0.25</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.06" >
<WEIGHT>0.30</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.07" >
<WEIGHT>0.35</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.08" >
<WEIGHT>0.40</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.09" >
<WEIGHT>0.45</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.10" >
<WEIGHT>0.50</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.11" >
<WEIGHT>0.55</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.12" >
<WEIGHT>0.60</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.13" >
<WEIGHT>0.65</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.14" >
<WEIGHT>0.70</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.15" >
<WEIGHT>0.75</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.16" >
<WEIGHT>0.80</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.17" >
<WEIGHT>0.85</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.18" >
<WEIGHT>0.90</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.19" >
<WEIGHT>0.95</WEIGHT>
</KEYFRAME>
<KEYFRAME TIME="0.20" >
<WEIGHT>1.00</WEIGHT>
</KEYFRAME>
</TRACK>
Each track contains 20 keyframes and each keyframe counts the time upwards towards the total duration of .20 seconds by increments of 0.01 seconds (Example: [0.01, 0.02, 0.03 .... 0.19, 0.20 ] )
This needs to continue to be true if you increase / decrease the duration; the keyframes need to slowly count up to the duration that you chose, preferably by increments of (Duration / Number of KeyFrames) if you want the morph of the eyes blinking to remain smooth. (Example: [0.20 seconds / 20 KeyFrames = 0.01 seconds] giving us increments of 0.01 seconds per KeyFrame )
Posted 4 years ago
is there a way you can explain this more , to make the blinking slower but also more smooth running. and how you can mame multiple blinks in a small amount of time , as like a flirty type blinking ? fluttering the eyes, if im explaining it right. i've tried different numbers and nothing has worked.
Posted 4 years ago
@Don Von Alpha Dom
Im trying to replace the default animation, I'm mostly focused on just slowing down the blinking to a more normal/natural pattern & then working on the fluttering of the eyes. Although, no matter how many numbers i play with or try to understand, my .xpf file doesnt seem to make a difference in the blinking. It only makes the 1st blink slow. but not normal. It closes gradually and naturally but doesnt open naturally , it just opens suddenly. and then the rest of the blinks are just default fast blinks.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Select a forum
Protection
Help & Support
Introductions
Mafia News
IMVU News
General Discussion
IMVU Lounge
IMVU Series / Roleplaying
Social Games
Mafia Market
Mafia Tools
Premium IMVU Tools
Off Topic Tools
Off Topic
Contests
Creator Corner
Graphics Design
Photoshop
GIMP
Basic Creator Help
Catalog And Product Showcase
3D Meshing
3Ds Max
Sketchup
Blender
Gangsters with Connections
White Hat Activities
Google Hacking
Trackers
Programming Corner
Coding
Python
.Net (C#, VB, etc)
Flash
JAVA
Autoit
Batch
HTML & CSS
Javascript
PHP
Other
IMVU Homepage Codes
General
About me Panel
Messages Panel
Special Someone Panel
Visitors Panel
New Products Panel
Rankings Panel
Wishlist Panel
My Badges Panel
Outfits Panel
Url Panel
Groups Panel
Slideshow Panel
My Room Panel
Sandbox panel
Layouts
Help & Requests
Free Credits
Approved Methods
Submit Methods
Free Money
Approved Methods
Submit Methods
Adult Corner
Get Mafia AP Here
AP Lounge
AP Social Games
Casual Dating Tips
IMVU Slave Market & Escorts