Announcement

Collapse
No announcement yet.

ActionScript for VIZRT

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

  • ActionScript for VIZRT

    Guys,

    Below are the few Action Script which might help you in your scene development.

    To Start specific director any time on timeline:
    RENDERER*STAGE*DIRECTOR*DirectorName START

    to set marker of specific director on specific time:
    MAIN_SCENE*STAGE*DIRECTOR*DirectorName SHOW 20;

    to set Camera:
    THIS_EDITOR SET_CAMERA x where x=1..16.

    To tranform specific container in the scene tree:
    MAIN_SCENE*TREE*$ContainerName*TRANSFORMATION*POSITION* SET 00 27 50

    to scale duration of a Director:
    THIS_SCENE*STAGE*DIRECTOR*$DirectorName SET_LENGTH 20

    to set any named keyframe on any field position on stage:
    MAIN_SCENE*STAGE*DIRECTOR*$DirectorName*KEY*$KeyName*TIME SET F120

    to update keyframe:
    MAIN_SCENE*TREE*$NodeName*ANIMATION*KEY UPDATE

    to set pivot center to any direction of any container:
    MAIN_SCENE*TREE*$ContainerName*TRANSFORMATION*CENTER*Y SET C

    to delete animation from any container in the scene tree:
    MAIN_SCENE*TREE*$ContainerName*ANIMATION DELETE


    Thanks
    Umair Ahmed
    Attached Files

  • #2
    Thank you. Very helpful!!!!

    Comment


    • #3
      Thankyou

      Comment


      • #4
        Its not ActionScript, it is Viz Commands.
        Anytime the Scripting doesnt have a command for what you want to do, you can use a SendCommand like this instead. Do the behaviour you want to do and check the command console what parameters you need and put that in a SendCommand.
        SendCommand("RENDERER*STAGE*DIRECTOR*DirectorName START")
        Attached Files

        Comment


        • #5
          Is there Actionscript to copy value from one named keyframe to a second named keyframe?

          This is very helpful info.

          Comment


          • #6
            *Change TIME and COMMAND of an ActionKeyframe:
            THIS_SCENE*STAGE*DIRECTOR*Default*ACTION*Blocker*KEY*$Jumper*TIME SET F101;
            THIS_SCENE*STAGE*DIRECTOR*Default*ACTION*Blocker*KEY*$Jumper*VALUE SET THIS_ DIRECTOR SHOW F100;

            * Command to change the VALUE of a key frame:
            RENDERER*TREE*<NodeFullPath>*ANIMATION*KEY*<KeyFrameName>*VALUE SET <KeyFrameValues>

            Comment


            • #7
              Great, I will try that.

              Thanks!

              Comment

              Working...
              X