Script does not get called

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

  1. #1

    Default Script does not get called

    Hi there, I am trying to setup a quad view on my stage by placing 4 sprites on
    the stage with the same 3D cast member. I then apply a behaviour script that
    initalizes the 4 sprites in their correct positions and sets up the 4 different
    camers as follows...

    topView
    perspView
    sideView
    frontView

    ... however, doing so, the script gets called only on the first sprite and the
    other 3 sprites do not react with the behaviour script. As a matter of fact, I
    also have a sendAllSprites command inside the behaviour script and it does not
    send the message to all of the sprites with that piticular behaviour script. Is
    the reason why the behaviour script does not work on the other 3 sprites
    because I need a diferent 3d castmember for each sprite?

    Roofy Guest

  2. Similar Questions and Discussions

    1. PVII Called From External Script?
      I have a site that uses Auto ShowHide by PVII for dropdown menus. I'm trying to clean up my code and wondering if its possible to call these...
    2. Count the no of times a script is called
      I have a fortran program calling a perl script for various parsing activities for multiple number of times. I wish to increment a variable by 1 in...
    3. #22401 [Ver]: ob_start callback function isn't called when script exceeds max_execution_time
      ID: 22401 Updated by: sniper@php.net Reported By: php at andyuhl dot com Status: Verified Bug Type: ...
    4. #22401 [Opn->Ver]: ob_start callback function isn't called when script exceeds max_execution_time
      ID: 22401 Updated by: sniper@php.net Reported By: php at andyuhl dot com -Status: Open +Status: ...
    5. How to get the URL of the php script being called?
      Is there a way to get the URL of the php script being called? For example, in my web browser I goto the URL: "http://www.foo.com/foo.php", how do...
  3. #2

    Default Re: Script does not get called

    Hello,

    You don't need to place 4 sprites of the same W3D cast member in the score.

    1- Place a single occurence (sprite) of the W3D cast member in the score
    2- Create 4 cameras either in your 3D package or by code using
    member.newCamera():

    topView
    perspView
    sideView
    frontView

    3- Set the rect of the four cameras so they correspond to each corner of the
    screen
    4- Use sprite.addCamera() in order to add the four cameras to the W3D sprite

    That's all you need.

    Best regards,
    Karl Sigiscar.

    [url]http://www.chromelib.com[/url]


    Newt99 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