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

  1. #1

    Default Grouping objects

    Hey all, finally getting some movement on my crane, just having issues grouping
    the objects and rotating them all etc... what am I doing wrong!

    --------------------------------
    global craneMove
    global rotationValue

    property gMainArm


    on start

    -------- Assign Groups ------------
    gMainArm = member("Crane").newGroup("MainArm")

    member("Crane").model("Arm1").parent = gMainArm
    member("Crane").model("Arm2").parent = gMainArm
    member("Crane").model("Rope").parent = gMainArm

    end

    on rotateLeft

    gMainArm.rotate(0,0,1)

    end

    -----------------------------------------------

    This throws up the error: Script Error: Object expected -
    gMainArm.rotate(0,0,1)


    Any help would be much appreciated. Ta

    AndrewNock Guest

  2. Similar Questions and Discussions

    1. help with grouping
      I created a select statement that orders everybody last name in Alphabetical order. At the top of the page I listed the Alphabet A-Z. I would like...
    2. Help with grouping and sum in query
      My query looks like: <cfquery name="getTotals" datasource="db"> SELECT SUM(Extension) AS TotalDayBilling, DatePart(dw, TimesheetDate) AS...
    3. Grouping
      I always get an error " virtual column must have explicit name" I wrote a query to execute and store result in another table..I query does sum...
    4. grouping and moving objects
      I seem t be having difficulties with moving objects which are on both separate layers as well as on the same timelines. Question is, is it possible...
    5. Grouping layers
      Hi all, Can layers be grouped like in photoshop. Is that one of the things frames are for. Can't seems to find the answer in the manual or within...
  3. #2

    Default Re: Grouping objects

    I assume that this is a Movie Script. Try changing 'property gMainArm' to
    'global gMainArm'. Movie Scripts aren't designed to use properties; the
    existence of a property with the same name as a local variable renders the
    local variable unusable.

    openspark Guest

  4. #3

    Default Re: Grouping objects

    Hi, thanks for that,

    unfort now it comes up saying

    'Object has been deleted'


    We think its a scope issue, as when i run the code through the message window, it works fine
    AndrewNock Guest

  5. #4

    Default Re: Grouping objects

    Don't worry, all fixed. After stepping though all the code in my mind (and after a needed coffee) I realised that it calls the group then calls resetWorld() behaviour which must delete groups...

    AndrewNock 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