x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How Can I Move/Animate static meshes within a Blueprint?

Let's say I have a Blueprint that contains two static meshes. One is a glass jar, and the other is a lid for the jar. My goal is to have a button on screen that you can click and it will move the lid on and off the jar.

I was told the way to make it look best is to some how animate it with keyframes but I can't seem to do it with an animation BP. I can add pictures and such for assistance.

So assume the Blueprint is called JarBP. This will be the closed jar. I have tried making a second BP called OpenJar with the lid static mesh moved to another location so that it appears the jar is open. How an I make it where when you click the on screen button, the lid will literally pick up and be placed on the jar and vice versa. I tried switching visibility between the two BPs, and I tried literally having it moved the static move via SetActorLocation and all. Please help me set this up right.

Product Version: UE 4.18
Tags:
more ▼

asked Jun 20 '18 at 06:21 PM in Blueprint Scripting

avatar image

zeltparker
13 3 2 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You can try out the new sequencer which is getting better and better:

alt text

Under animation create a level sequence, open it, then right click on the lid, and press record in sequencer.move it after the countdown, and press the stop button. You'll create a track. Double click on the red track in the sequencer to finetune it

more ▼

answered Jun 20 '18 at 06:54 PM

avatar image

Felix Leonhart
496 3 4 7

avatar image zeltparker Jun 21 '18 at 08:32 AM

I was about to attempt this but I realized I can't. The lid and jar would be components in the JarBP. So I can't record the actual lid moving without moving the entire BP. Is there a way around this or will I have to deconstruct the BP and place the actual components into the level? This isn't bad for just the jar and lid if so, but for more intricate items, it would become quite the hassle. @FelixLeonhart

avatar image zeltparker Jun 21 '18 at 05:49 PM
avatar image Felix Leonhart Jun 21 '18 at 05:58 PM

Hmmm,,,, to handle it like that I would make the jar as a skeletal mesh with a root bone and lid bone, made the animation in blender and with blueprints attached the lid to the lid bone that is animated. That way I would be able to detach the lid at any time.

avatar image Felix Leonhart Jun 21 '18 at 05:59 PM

And after that you could tweak the animation in ue4 to suit you.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question