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"

Blueprint to reset actor in loop after changing materials (Graduation thesis, please help!)

Hello everyone, I’m working on an architectural visualization and I’m trying to create a blueprint that allows the player to make other actors disappear by pressing a button. As you can see from the images, pressing B the group of meshes “BasamentiNeri” disappear (I’ve created a material that, from a black marble texture, becomes “invisible”, and then I’ve disabled collisions), and pressing L the group of meshes “CopiaBasamentoNero” (consisting in the same meshes, duplicated, made invisible at the begin and placed in the same position of “BasamentiNeri”) appears (I’ve created another material that, from “invisible”, becomes a black marble one, and then I’ve enabled collisions). This works, but, when I try to loop the button press, it fails to reload the sequence of events linked to the change of materials and the group modifies only its collision.

Is there a way to reload the actor and the material after pressing B and L the first time, as if nothing had happened? I hope so, I tried everything and I have no more ideas >_< Thanks to whoever will help me.

alt text

alt text

Product Version: UE 4.17
Tags:
button-b.jpg (108.9 kB)
button-l.jpg (102.8 kB)
more ▼

asked Feb 06 '18 at 12:43 PM in Blueprint Scripting

avatar image

Ewhyl
6 1 2 4

avatar image Jacky Feb 06 '18 at 05:05 PM

From what i understand you are using those parameters in the material in some sort of hierarchy to swap between textures or values? If that's the case you need to "reset" those parameters with each B and L input. I.e. You also need to set DissolveBInvert to its initial value as you hit B to set the dissolve parameter.

Also you dont need a timeline for these, since you arent using a float track to update the parameters.

avatar image Ewhyl Feb 06 '18 at 07:13 PM

Hello Jacky and thank you so much for your response. I recorded a video to explain better: https://www.videosprout.com/video?id=f7f57a06-5181-4e10-9c8a-4c1d4adf2445

I think you are the one who understood better my problem, but I'm pretty new in UE and I can't catch well your explanation. I followed a tutorial to make my material and, without the timeline, it doesn't work (I've just tried); I'll post screens to let you see how it works (it uses a material parameter collection, I can't understand well why). About the reset, this is just my problem. Could you explain me step by step or give me some references about? I don't know what else to do.

alt text

alt text

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

2 answers: sort voted first

Buongiorno Ewhyl,

I'm not sure about the 'Flow' of your experience you're trying to achieve, but one quick way to reset everything is to fire off an "execute console command" node with "restart level". (You will be placed back at start location)

Have you tried playing the timelines in reverse? (Protip, you can drag off a == node from "Direction" and branch logic depending on what direction you're playing)

more ▼

answered Feb 06 '18 at 02:51 PM

avatar image

Alex O ♦♦ STAFF
2.8k 5 10 11

avatar image Ewhyl Feb 06 '18 at 07:14 PM

Hello Alex O, and thank you so much for your response. I recorded a video to explain better: https://www.videosprout.com/video?id=f7f57a06-5181-4e10-9c8a-4c1d4adf2445

I tried as you suggested, but unfortunately the problem remains: pressing B, the group disappear (based on the properties of the material assigned); then, pressing L, the other group appears (based on the properties of the other material assigned); then, trying to press B or L, the group modifies only its collision.

I think the problem is the transition between the 2° group of meshes (with its material) and the 1° one (with the other material), but how can I reset this? In this case, I can't manage to use only one material and play the timelines in reverse, because it doesn't work.

Mine is an Arch viz, so I need to leave the player free to move in the room but, pressing B and L, part of the room has to disappear and a new one has to appear, in sostitution of the first one. For now, I can do this just once. But I need to leave the player free to start this transition anytime he wants; is it possible?

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

why dont you try using the set actor hidden in game node instead of using timelines and changing the material.

more ▼

answered Feb 06 '18 at 03:51 PM

avatar image

ThompsonN13
10.1k 33 10 25

avatar image Ewhyl Feb 06 '18 at 07:18 PM

Hello ThompsonN13 and thank you so much for your response. I recorded a video to explain better: https://www.videosprout.com/video?id=f7f57a06-5181-4e10-9c8a-4c1d4adf2445

In this archviz, I need to show the transition; it's part of my thesis. I tried to set actor hidden in game, but I don't obtain the result I need.

(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