Announcement

Collapse
No announcement yet.

How do set float from blueprint to Animation blueprint?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do set float from blueprint to Animation blueprint?

    I am pretty sure this had been answer before but I don't know what "special word" to ask Google as it refuse to help me..

    Hope you guys can.

    How can I do set the float math from blueprint and get float to Animation blueprint to set alpha blend in animation node?

    What I am trying doing? I want to press AIM input to toggle between weapon holster and weapon Aim.

    Good example -

    This pose is only head that look around..

    Click image for larger version

Name:	16mag-guns-1-master768.jpg
Views:	1
Size:	85.2 KB
ID:	1220034

    Blend into this

    This pose is both head and rifle look around..

    Click image for larger version

Name:	1_1475050657.jpg
Views:	1
Size:	276.5 KB
ID:	1220035

    And repeat from top.

    Both have different AimOffset which that is why most equip weapon YouTube tutorial is fail.

    My animation blueprint is work great. I've test 'manual' change number of alpha float and both way blend in work well.

    This is what I need, press AIM button e.g gamepad input/keyboard input/ VR google input. All in one event node to toggle between those two picture.

    #2
    Set a variable in your character BP and in the anim bp anim graph do Try Get Owner - Cast to yourcharacterBP and get the variable from there.

    Comment


      #3
      AnimBP are designed to be very closed environment; you won't be able to change values in it directly (unless using C++), you're supposed to make your AnimBP "query" info from outside instead...
      So your AnimBP have to constantly read the value from your Blueprint instead of Blueprint sending the value to AnimBP directly.
      | Savior | USQLite | FSM | Object Pool | Sound Occlusion | Property Transfer | Magic Nodes | MORE |

      Comment


        #4
        Originally posted by BrUnO XaVIeR View Post
        AnimBP are designed to be very closed environment; you won't be able to change values in it directly (unless using C++), you're supposed to make your AnimBP "query" info from outside instead...
        So your AnimBP have to constantly read the value from your Blueprint instead of Blueprint sending the value to AnimBP directly.
        Originally posted by cyaoeu View Post
        Set a variable in your character BP and in the anim bp anim graph do Try Get Owner - Cast to yourcharacterBP and get the variable from there.
        I got you! Other way around ugh... I better get back on it tomorrow. Should be work I'll let you both know if I got it solve.

        Comment


          #5
          Click image for larger version

Name:	giphy.gif
Views:	1
Size:	887.2 KB
ID:	1127997

          Yes it working! but snap animation.. I need learn how to "slowing count up/down" math for switch between 0/1.. I think its Delta node...

          Comment


            #6
            Originally posted by Dan3DIM View Post
            [ATTACH=CONFIG]140727[/ATTACH]

            Yes it working! but snap animation.. I need learn how to "slowing count up/down" math for switch between 0/1.. I think its Delta node...
            There's also FinterpTo.

            Comment


              #7
              Fail... maybe it's me.

              Finterp To
              Finterp ease in out
              And other ease node... How do it right?

              I've try it all and don't got it work
              What have I done wrong with curve math for smooth switch between 0 to 1?

              Comment


                #8
                Well you didn't post your BP so we have no idea.

                Comment


                  #9
                  Originally posted by cyaoeu View Post
                  Well you didn't post your BP so we have no idea.
                  I know you all don't want to heard why I delay or my delay tactic.... Most of my freetime roam on web is on smartphone...

                   
                  Spoiler

                  Comment


                    #10
                    hint - there are blueprint in 'spoiler'

                    still haven't solve Finterp in 4.15... hope 4.16 can fix this.

                    Comment

                    Working...
                    X