Announcement

Collapse
No announcement yet.

KEYFRAME VALUE CHANGE BY CODE

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

  • KEYFRAME VALUE CHANGE BY CODE

    Hi,
    Can anyone help me?
    I am trying to change the value of the Keyframe in the timeline by code.
    Where I want to change the wide value of Noggi by code.

    Example:
    This is the code for changing value in the action Keyframe.
    RENDERER*STAGE*DIRECTOR*<DirectorName>*ACTION*<ActionChannelName>*KEY*<KeyFrameName>*VALUE SET <KeyFrameValues>

    Thanks in advance.

  • #2
    Try this in a script plugin:
    stage.finddirector(“LINE1").findkeyframe("K2").floatValue = your value
    you can execute this code by pushing a button or in the OnGeometryChanged event.
    Alternatively you can use an Action Keyframe, to do that add an action to director, add action keyframe, open console, change it manually and you can see in the console the code you need.
    I hope this can be helpful for you,

    cheers

    Comment


    • #3
      Hi,
      Thanks for your reply. I'm now expat in scripting. It will be very helpful if you can give me any code which I can write in the action keyframe.
      Example: RENDERER*STAGE*DIRECTOR*<DirectorName>*ACTION*<ActionChannelName>*KEY*<KeyFrameName>*VALUE SET <KeyFrameValues>
      I'm glad for your cooperation.

      Comment


      • #4
        Here:
        Code:
        MAIN_SCENE*TREE*$LINE1*ANIMATION*KEY*$K2*VALUE SET 35.0
        or:
        Code:
        RENDERER*TREE*<NodeFullPath>*ANIMATION*KEY*$<KeyFrameName>*VALUE SET <KeyFrameValues>

        Comment

        Working...
        X