Frame delays when modifying an animation

Report any Hollywood bugs here

Frame delays when modifying an animation

Postby jPV » Sun Mar 19, 2017 1:42 pm

If you remove frames, frame delays aren't modified accordingly.

Code: Select all
LoadAnim(1,"Hollywood:MUIRoyale/Examples/Hollywood/Anim/Amy_Walks.anim")
DebugPrint("Original delays:")
For i=1 To 3
    DebugPrint("Delay of frame "..i..":",GetAttribute(#ANIM,1,#ATTRFRAMEDELAY, i))
Next
DebugPrint("After removing the first frame:")
ModifyAnimFrames(1,-1,1)
For i=1 To 3
    DebugPrint("Delay of frame "..i..":",GetAttribute(#ANIM,1,#ATTRFRAMEDELAY, i))
Next


This outputs:
Original delays:
Delay of frame 1: 0
Delay of frame 2: 16
Delay of frame 3: 16
After removing the first frame:
Delay of frame 1: 0
Delay of frame 2: 16
Delay of frame 3: 16

I tried to remove the first frame which has a delay of 0. One would think that the second frame would become as the first frame and maintain its own delay. Instead of that the original frame delays stick at the original frame positions no matter what you remove in between.
User avatar
jPV
 
Posts: 77
Joined: Sat Mar 26, 2016 11:44 am
Location: RNO

Re: Frame delays when modifying an animation

Postby airsoftsoftwair » Tue Mar 21, 2017 1:08 am

Right, will be fixed, thanks for reporting!
User avatar
airsoftsoftwair
 
Posts: 2198
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: Frame delays when modifying an animation

Postby airsoftsoftwair » Thu Apr 27, 2017 6:41 pm

This was actually the same bug as this. Fixed now.
User avatar
airsoftsoftwair
 
Posts: 2198
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to Hollywood bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron