Announcement

Collapse
No announcement yet.

How to create action KeyFrame with script?

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

  • How to create action KeyFrame with script?

    Hello...All

    Can anyone help me?
    I am trying to use script to create action KeyFrames?
    and
    set KeyFrame name & KeyFrame time & add action command also.

    Thanks


  • #2
    using Vizscript...
    'To Create an action keyframe
    Stage.FindDirector("DirectorName").FindActionChannel("ActionChannelName").AddKeyFrame(10).name = "MyActionKeyFrame"

    'To edit the action script of the action keyframe
    Stage.FindDirector("Default").FindActionChannel("Action").FindKeyFrame("MyActionKeyFrame").ActionString = "THIS_DIRECTOR START"

    Comment


    • #3
      Thanks for reply.

      Comment

      Working...
      X