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"

Change Scalar Parameter

Hello,

I have a vertex animation directed by a texture, i want to speed and slow the animation with mapped keys, but i'm getting stuck on changing the Scalar Parameter in the level blueprint.

Here is the Scalar parameter that i need to affect (Speed), it basically determines the speed of the vertex animation

alt text

Here is my blueprint, i feel like it should work, but im having no luck.

alt text

Any Ideas?

Product Version: UE 4.12
Tags:
more ▼

asked Aug 10 '16 at 10:34 AM in Blueprint Scripting

avatar image

Dark_Jubei
177 33 46 53

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

2 answers: sort voted first

your problemis that you apply a material, and then "duplicate" this mat, and modify the duplicated (instanced) material only, that means not the one applyied to the object.

alt text

dyn.jpg (140.4 kB)
more ▼

answered Aug 10 '16 at 03:41 PM

avatar image

expose
769 26 6 43

avatar image Dark_Jubei Aug 10 '16 at 04:38 PM

Hey expose, I'm so close to getting this, but stumbled on the last hurdle. For some reason the material interface variable wont hook up to the target. I get the below error. Did i do something wrong?

Thanks so much for all the help

alt text

avatar image expose Aug 10 '16 at 04:50 PM

hey there ! your close ! i think you didn't use the propre variable type. try to pull the return value pin the create material instance node, rightclick (check context sensitive) and choose promote to variable. then plug this new variable in the set scalar node

avatar image Dark_Jubei Aug 11 '16 at 09:59 AM

WORKING!!! Thanks expose!!!

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

i think that s not the good way to do it. you should create your material instance on event begin play (for exemple) and store it to a variable then apply it to your mesh. so you can access it and modify the scalar parameter on key press event.

more ▼

answered Aug 10 '16 at 11:00 AM

avatar image

expose
769 26 6 43

avatar image Dark_Jubei Aug 10 '16 at 01:13 PM

Thanks for the response expose, could you give me an example of how that would work? I'm quite new to blueprints and code in general.

(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