Graphics

 View Only
  • 1.  Animated_Editable Last keyframe Editable.

    Posted 08-21-2024 05:50
      |   view attached

    HI,

    I am looking to update my animation last keyframe value from text field. I have already use visual logic but un bale to make editable. scene attached with this Post.

    have idea that will achieve by scripting. but I'm not that good in scripting.



    ------------------------------
    [Wajahat] [Ali]
    [Team Lead] [RTG Designer]
    [Hum News][Karachi/Islamabad] [Pakistan]
    ------------------------------

    Attachment(s)

    xpp
    Animated_Text_Integer.xpp   9.68 MB 1 version


  • 2.  RE: Animated_Editable Last keyframe Editable.

    Posted 08-21-2024 06:14

    There's a few discussion on keyframing with script. 

    https://rossvideo.community/discussion/scripting-keyframes-on-animation-controller#bm073c6a6a-28ee-48e5-8e7b-018ef262667f 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 3.  RE: Animated_Editable Last keyframe Editable.

    Posted 08-21-2024 10:22

    OK, that looks good but that seems to be set key from the script. i am looking to the keyframe value from the text object.



    ------------------------------
    [Wajahat] [Ali]
    [Team Lead] [RTG Designer]
    [Hum News][Karachi/Islamabad] [Pakistan]
    ------------------------------



  • 4.  RE: Animated_Editable Last keyframe Editable.

    Posted 08-21-2024 10:35

    Yes so you would call the text object first and then you set the key from the text object. 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 5.  RE: Animated_Editable Last keyframe Editable.

    Posted 08-21-2024 11:17
    dim anim1 as xpAnimController
    dim myQuad as xpBaseObject
    dim endFrame as xpTextObject
     
    self.GetAnimControllerByName("AnimController1", anim1)
    self.GetObjectByName("Quad1", myQuad)
    self.GetObjectByName("End Frame", endFrame) 
     
    dim xVal as string = endFrame.Text
     
    anim1.SetKeyFrameValueTCB(myQuad, 0, "Position.X", 0, 1, 0, 0)
    anim1.SetKeyFrameValueTCB(myQuad, 100, "Position.X", xVal, 1, 0, 0)


  • 6.  RE: Animated_Editable Last keyframe Editable.

    Posted 08-23-2024 02:23

    Thanks. that's helps to understand the things.



    ------------------------------
    [Wajahat] [Ali]
    [Team Lead] [RTG Designer]
    [Hum News][Karachi/Islamabad] [Pakistan]
    ------------------------------