We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Anim Param and Updated Value

Home Forums Puzzles Anim Param and Updated Value

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #71819
    bennyhase
    Customer

    Hi there,

    is the puzzle “updated value” only global in the scene?

    I have an example: on circle and Monkey-Object from Blender.

    I want to smooth rotate (without any keyframes from Blender) different objects in the same scene with a click (button or event).

    The problem is, only one object in the scene works with “animate param” and “updated value”.
    One object is doing a smooth rotation if i press a button.
    The other object is snapping to it´s default state and then it will rotate smoothly.

    I want to animate the value for rotation indipent for each object but with the click of one button. See here the scene:

    Verge Scene

    Here my puzzle:

    Attachments:
    You must be logged in to view attached files.
    #71821
    kdv
    Participant

    That puzzle should be used only inside the animate param puzzle, but not as an argument for this function. It’s an auxiliary global variable calculated every frame for every animate param function individually.

    https://v3d.net/u7p

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #71831
    bennyhase
    Customer

    Thank you, will try it

    #71850
    kdv
    Participant

    Optimized variant (just one animate param and no repeating code)

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #71865
    bennyhase
    Customer

    @kdv : thank you very much. I have implemented your first code and now it behaves as expected !!

    You save my day.

    Regards,

    Martin

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.