How to change the playrate...

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default How to change the playrate...

    I really hope you can help me with this one:

    I know I can set the playrate of individual models using
    member(whichCastmember).model(whichModel).keyframe Player.playRate

    But what if I want my whole scene to play slower / faster? Do I have to set it
    on every model manually? Isn´t there a quick and easy way to do that?

    Thanks a lot for the help.
    Best Regards

    foq Guest

  2. Similar Questions and Discussions

    1. How can I change an A3 PDF to A4?
      To really reduce the dimensions of a PDF you need a 3rd party tool. I find pdfCorrect very handy to do this type of task (www.callassoftware.com). ...
    2. how do I change pdf form in Version 7.0 change permission to allowed
      hello, I'm working on a web application. I need to insert some javascript to a form which is submitted by someone else. I had no problem in...
    3. change URL
      I recently redesigned the web site, replacing the old home page. How do I change the default URL given to this page by Contribute?
    4. change swf
      Have an swf which i made with instant flashfiles. How can I change it or open it in macromedia flashMX. Same i suppose for an existing flashfile...
    5. change account name does not change login name
      If I try to change an account name through control panel- usermanagement, it appears to be cosmetic only. When I restart, if I attempt to login in...
  3. #2

    Default Re: How to change the playrate...

    foq wrote:
    > I really hope you can help me with this one:
    >
    > I know I can set the playrate of individual models using
    > member(whichCastmember).model(whichModel).keyframe Player.playRate
    >
    > But what if I want my whole scene to play slower / faster? Do I have to set it
    > on every model manually? Isn´t there a quick and easy way to do that?
    There´s no easy way but instead of doing it with many lines, you can use
    iterations. E-mail Lingo:

    repeat with n = 1 to member(whichCastmember).model.count
    thisModel = member(whichCastmember).model[n]
    thisModelHasKeyframePlayer = FALSE
    repeat with n = 1 to thisModel.modifier.count
    if thisModel.modifier[n] = #keyframePlayer then
    thisModelHasKeyframePlayer = TRUE
    exit repeat
    end if
    end repeat
    if thisModelHasKeyframePlayer then thisModel.keyframePlayer.playRate=0.5
    end repeat
    end

    That code (hopefully) will detect which models has #keyframePlayer
    modifier attached and set they playrate to half of the speed.

    Regards,
    --
    Agustín María Rodríguez

    [url]www.onwine.com.ar[/url] > Macromedia Director demos & code
    Agustín María Rodríguez Guest

  4. #3

    Default Re: How to change the playrate...

    Thanks a lot for the help, Agustin.
    It makes sense, but it crahses Director...
    foq Guest

  5. #4

    Default Re: How to change the playrate...

    Yes, change the counter "n" in repeat with n = 1 to thisModel.modifier.count to a different variable.
    tedalde2 Guest

  6. #5

    Default Re: How to change the playrate...

    of using "getone" to detect the modifier:

    cnt=pWorld.model.count
    repeat with i=1 to cnt
    modifier_list=pWorld.model[i].modifier
    if modifier_list.getone(#keyframePlayer) = 1 then
    pWorld.model[i].playRate=0.5
    end if
    end repeat



    hondo3000 Guest

  7. #6

    Default Re: How to change the playrate...

    hondo3000 wrote:
    > of using "getone" to detect the modifier:
    >
    > cnt=pWorld.model.count
    > repeat with i=1 to cnt
    > modifier_list=pWorld.model[i].modifier
    > if modifier_list.getone(#keyframePlayer) = 1 then
    > pWorld.model[i].playRate=0.5
    > end if
    > end repeat
    >
    >
    >
    hehe Thanks for that one! I knew I was missing an easier way but didn´t
    have time to think what it was until I saw your post ;)

    Cheers!
    --
    Agustín María Rodríguez

    [url]www.onwine.com.ar[/url] > Macromedia Director demos & code
    Agustín María Rodríguez Guest

  8. #7

    Default Re: How to change the playrate...

    there was something wrong... it shoud be ...getone(#keyframePlayer) <> 0
    so this should work with models that have not the keyframeplayer in the first
    position
    of the modifier list.

    repeat with n=1 to pWorld.model.count
    if (pWorld.model[n].modifier).getone(#keyframePlayer) <>0 then
    pWorld.model[n].playRate=0.5
    end repeat
    >hehe Thanks for that one! I knew I was missing an easier way but didn?t
    >have time to think what it was until I saw your post ;)
    (this is now the shortest one i can imagine :) )

    cheers!




    hondo3000 Guest

  9. #8

    Default Re: How to change the playrate...

    changing the framerate of the 3d member would also slow or speed up the entire
    scene. click somewhere on the 3d scene of the timeline and right click, insert
    keyframes, click on a keyframe go to modify, frame, tempo change the tempo
    framerate. where ever you click on keyframe and change the playrate. it will
    play at the speed you tell it to instead of the default 30

    tyree_2 Guest

  10. #9

    Default Re: How to change the playrate...

    this will have no effect on the keyframe or bonesplayer, they are timebased and tempo can only be changed by setting the playrate.
    hondo3000 Guest

  11. #10

    Default Re: How to change the playrate...

    Thanks a lot everyone!
    foq Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139