i was doing a tutorial and tried to modify it by adding a shrinking action.
The animation works fine, but the first time it is used the whole cube scales a little bit for no reason and remains that size, as seen in the video. I want to remove that but dont no how.
I hope the information in the video and pictures are enough.
Does the cube mesh component in your blueprint have a starting scale different than { 1.0, 1.0, 1.0 }?
With your timeline output you are constantly setting the 3D world scale to { 1.0, timeline-output, 1.0 }.
If your cube mesh component has a different scale set by your blueprint, say {0.8, 0.8, 0.8}, then as soon as the timeline starts playing it’ll set those to { 1.0, timeline-output, 1.0 }, aka it increases in size the first time the timeline is played.
Another possibility :
Looking at the video, it seems like the “BP_Cube” actor is already placed in the level before you press start (aka it’s not spawned at runtime).
After having placed the “BP_Cube” actor in the level, did you perhaps modify the scale in that placed actor’s cube component, overriding the default values from the blueprint?
If we take into account that the timeline and the SetWorldScale3D function set it to scale {1, …, 1}, the default blueprint scale values are {1,1,1} AND it clearly is smaller before you start playing the timeline, there is probably some spot where you made the default scale value for that actor smaller, be it by
modifying the scale on the placed actor in the level (as mentioned above)
modifying the scale in the construction script
or in some other way i can’t think of right now (well, could be some other blueprint modifying it, like the level blueprint, but in that case you should be aware of it already since you would have to have coded it yourself)
Can you try removing the actor from the level and placing a new one?