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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Timeline/Matinee in a blueprint

Hello, I finally learned how to make a door that opens and closes using line trace (my blueprints shown in screenshots) everything seems to be working fine, but I'm not yet 100% satisfied with the result that I've achieved. My blueprint works with a timeline that rotates the door 90 degrees, Something like this works really well if you are looking for a simple rotation/door, but I was looking forward to a door that rotates, and with it the door handle like in real life and here is the bit that I'm really struggling with, I can't find any way to to add one separate timeline to the door and a separate one to the handle, In my blueprint the door handle is the child of the door. I was also thinking about doing it with animation (with matinee) but I can't find a way how to add the matinee to the blueprint, like for example I've tried to add it in a Level Blueprint, the way you would add it, it would be by highlighting the matinee in the World Outliner and clicking "Create a Reference to Matinee" in the Level Blueprint. In my door blueprint, when I click the right button on my mouse, I don't have a such option.

I be so grateful if someone helps me with this, anyways thank you for your time. :)

alt text

alt text

Product Version: UE 4.10
Tags:
more ▼

asked Jan 03 '16 at 04:47 AM in Blueprint Scripting

avatar image

Sebapler
3 3 7 7

avatar image SoraJr Jan 03 '16 at 04:50 AM

Have you set up inputs yet? They're a huge time saver when clicking or pressing buttons.

avatar image Sebapler Jan 03 '16 at 04:56 AM

Yeah I know, I was going to set them up, but I'm struggling with this

avatar image SoraJr Jan 03 '16 at 05:03 AM

Ok, so the way I'm understanding your question is that you want a matinee to play after the door opens/closes? How you tried adding a Play node then pluging in the matinee reference?

avatar image Sebapler Jan 03 '16 at 05:10 AM

Not really, but what I would like to do Is either get rid of the timeline and replace it with a matinee (so I can have the door and the handle in one animation) or add a second timeline to the blueprint so one would be for the door rotating and one for the handle . Play node? let me see

avatar image SoraJr Jan 03 '16 at 06:25 AM

Oh ok. So why not have one timeline for the door and one for the handle. You could have one play after another. Possibly have the handle play first then the door. If they're both playing at the same time, add a delay node to one of them. Same could go for matinee, have one play after another.

avatar image Sebapler Jan 03 '16 at 07:20 AM

And here is where I struggle, how do I do that? so the timeline only affects one mesh in my blueprint

avatar image SoraJr Jan 03 '16 at 11:39 PM

Setting the matinee or timeline to one mesh will move just that mesh. Setting the door handle as a child will just move along with the door. Opening at 90 degrees. You can use a matinee or timeline on the handle then add a delay node for another matinee or timeline for the door. So the door will move 90 degrees after the dlhsndke rotates

avatar image Sebapler Jan 04 '16 at 07:16 PM

Any ideas (what actions should I use?) how I can connect this to my blueprint? (sorry, not very good at this things)

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

1 answer: sort voted first

Hi Do you just want to learn how to do a matinee and use it in a bluprint? If yes, check this out: https://www.youtube.com/watch?v=09-Owqumeo0

Use the same logic

more ▼

answered Jan 04 '16 at 09:28 PM

avatar image

FilipeTessaro
1.4k 54 20 60

avatar image Sebapler Jan 05 '16 at 06:30 PM

Yeah, but his doing it in a Level Blueprint, I need mine to be in a saved blueprint so I can place many doors just by dragging them on. Actually I've lost hope that you can even add a matinee to a saved blueprint and I'm asking how can I do something similar in a timeline?, how can I add two timelines so for example what I'm tring to achieve is a door handle rotating on one timeline and the door on a different one, but I have no idea how I can link the specific timelines to specific meshes (my door handle is the child of the door it self)

If you look at my first screen shot I have there a timeline that rotates the door 90 degrees. What actions should I use to add a second timeline for the door handle? and how would I make sure that the timeline will rotate just the door handle?

avatar image FilipeTessaro Jan 05 '16 at 06:51 PM

hmm, ok, now I think I understood you.

Ok, you can create a second timeline and do the same thing, but you can set the target to be your handle now, not "Self" To do both in the same vent, just use a sequence node, both will happens with the same event. Also, you may put a delay before the door timeline, so the handle rotates before

avatar image Sebapler Jan 05 '16 at 10:37 PM

What do you mean by: Set the target to be your handle now, not "Self" To do both in the same vent ?

avatar image FilipeTessaro Jan 05 '16 at 10:55 PM

the node; "setactorrelativerotation", you could use a node to rotate the mesh and the door hundle components, instead of using the actor "self", i.e the entire blueprint. To do both in the same event, use a sequence node.

avatar image Sebapler Jan 06 '16 at 08:48 PM

Am I doing this wrong? because it doesn't seem to work (strange things happening with the door when I interact with them)

alt text

screen.jpg (790.6 kB)
avatar image Sebapler Jan 08 '16 at 06:02 PM

Hello? :))

avatar image FilipeTessaro Jan 08 '16 at 06:14 PM

Hi I didn´t forget you my friend, hehe. I just need to recreate it here to understand what is going wrong and how to solve. I didn´t have time yet, but I will recreate it and reply to you asap

avatar image FilipeTessaro Jan 08 '16 at 07:05 PM

Hello I made this blue print:

alt text

And this is the result: https://www.youtube.com/watch?v=GKjBbhfv6iA

I created it in the Level Blueprint and the hundle is a Mesh/BP set as child of the door in the lvl, like this:

alt text

Is this the result you want?

level bp.png (569.6 kB)
avatar image Sebapler Jan 08 '16 at 11:24 PM

Wow thanks for the screens, I love the video :)

I'm nearly there, is it possible to fit all this (door & handle) in one saved script? and the door needs to be interactable by line trace for example (my first person character script) above. How would I do this?

avatar image FilipeTessaro Jan 09 '16 at 04:52 PM

Hi Yes, but if you just tryig to create a door to open and close, it is more effective to use the trigger box, just adjust the box trigger position to set your needs. Line trace is much more complicated to do the same thing...

avatar image Sebapler Jan 09 '16 at 05:19 PM

Yeah I know that It's more complicated :) that's probably why I've made this post in the first place, using a trigger is simple, but not satisfactional enough (it has to be with line trace)

avatar image FilipeTessaro Jan 09 '16 at 05:26 PM

haha, right. I´ll dig into it this week too and try to create the most simple a I can, good weekend!

avatar image Sebapler Jan 09 '16 at 08:21 PM

Yes, yes! you have no idea how happy I am right now :):) I've finally done it after a whole week of struggles, I've done it! :)

I've changed it a bit and it worked :) thanks for all the help, without you I would be still sitting here, staring at this computer screen, watching several of tutorials and getting mad at this thing, thanks :) now I have to figure out how to add sound to this thing :) alt text

yay.jpg (743.7 kB)
avatar image FilipeTessaro Jan 10 '16 at 08:23 PM

haha, good!! I´m happy that you succeed! To add sound, you can use the same logic, after the sequence node, add the node "play sound at location", it will play the sound and right after play the timeline.

avatar image Sebapler Jan 10 '16 at 10:34 PM

Thanks for the sound tip (was very useful) :) Oh yeah, you probably already noticed that I'm pretty bad at scripting :) If you want to help me again here's a thing, that I'm struggling with now :)

https://answers.unrealengine.com/questions/358025/how-can-i-rotate-a-object-when-grabbed-physics-han.html

(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