Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Subject: Cameras
Subject: scaleDown command
Subject: black out solved
Subject: Aircraft Tutorial
Subject: Mathematical XYZ ?
Subject: Re: Its done This vs That
Subject: Re: Its done first week
recommendations for screen video captures?
Subject: 3DExplorer "Oddity "
Subject: Re: New Director
Subject: ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
Subject: RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Subject: Re: Texturing
Big Break Contest Videos
Subject: New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Subject: Plasma?
Looking for Inspiration
Subject: Weird EMail Q
Subject: Re: It 's done first week ?
Subject: Cherry not cranberry
Subject: Re: New game
Camera Animation Problem
Subject: Particle plugins?
 
Subject: Inscrutable error

Subject: Inscrutable error

2004-03-25       - By Phil Gan

 Back
Reply:     1     2     3     4     5     6     7     8     9     10  

Fantastic! I hate commenting my code anyway :)

Thanks guys, much appreciated

Phil

-- --Original Message-- --
From: dir3d-l-bounces@(protected)
[mailto:dir3d-l-bounces@(protected)] On Behalf Of Neto
Sent: Thursday, March 25, 2004 1:12 PM
To: dir3d-l@(protected)
Subject: Re: [Dir3d-l] Inscrutable error

> on setEquations
>   pEquations=[[[#x:2, #k:5],[#x:-1,#k:3],[#a:"p"]], \        --1
>               [[#x:-1, k:3],[#x:-3,#k:4], [#a:"s"]], \       --2
>               [[#x:1, k:5],[#x:3,#k:-2], [#a:"x"]], \        --3
>               [[#x:2, #k:3],[#x:-3,#k:4], [#a:"a"]], \       --4
>               [[#x:-2, #k:3],[#x:8,#k:-7], [#a:"x"]], \      --5
>               [[#x:3, #k:2],[#x:-2,#k:7], [#a:"y"]], \       --6
>               [[#x:-1, #k:4],[#x:-3,#k:8], [#a:"x"]], \      --7
>               [[#x:1, #k:7],[#x:4,#k:-5], [#a:"a"]], \       --8
>               [[#x:2, #k:5],[#x:-2,#k:7], [#a:"x"]], \       --9
>               [[#x-:2, #k:3],[#x:-5,#k:9], [#a:"x"]]]        --10
> end

Line breaking is VERY sensitibe. You can't have those comments in there,
nor
you can have spaces before the line break delimitator:

on setEquations
 pEquations=[[[#x:2, #k:5],[#x:-1,#k:3],[#a:"p"]],\
             [[#x:-1, k:3],[#x:-3,#k:4], [#a:"s"]],\
             [[#x:1, k:5],[#x:3,#k:-2], [#a:"x"]],\
             [[#x:2, #k:3],[#x:-3,#k:4], [#a:"a"]],\
             [[#x:-2, #k:3],[#x:8,#k:-7], [#a:"x"]],\
             [[#x:3, #k:2],[#x:-2,#k:7], [#a:"y"]],\
             [[#x:-1, #k:4],[#x:-3,#k:8], [#a:"x"]],\
             [[#x:1, #k:7],[#x:4,#k:-5], [#a:"a"]],\
             [[#x:2, #k:5],[#x:-2,#k:7], [#a:"x"]],\
             [[#x:-2, #k:3],[#x:-5,#k:9], [#a:"x"]]]

end

Also, the first item in the last line had an error:
[#x-:2, #k:3]
It should be:
[#x:-2, #k:3]

A quick way to check if your line breaking is working is press the TAB
key.
It'll autoformat the script, and if any line in your list moves, it's
possible it's line break is wrong. Sometimes the autoformat will ident
lines
with correct line-breaking if your list is enormous, but no error is
generated.

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Dir3d-l mailing list
Dir3d-l@(protected)
http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Dir3d-l mailing list
Dir3d-l@(protected)
http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l