Meiky wrote:

> hi,
> I' ve tried  to put transform(n1,n2,n3, ... ,n14,n15,n16) in the variable
> tTransform, Like this: (in message window)
> 
> tTransform = transform(0.4872,-0.0562,0.0000,0.0000,
> 0.0795,0.1722,0.7071,0.0000, -0.0795,-0.1722,0.7071,0.0000,
> 19.2884,1.7649,4.2426,1.0000)
> 
> Like in the 3D Lingo Help <Transform (command)> but it's doesn't work
> director say :
> 
> script error : wrong number of parameters
> 
> What's wrong?

There's anything wrong, though that type of access is not allowed.
By Chris Nuuja, 20 Apr 2001

"An incorrect transform can crash many hardware drivers and we don't 
 have a way to protect against that.  If you stick to the transform 
 methods/properties, you can't create a bad transform.  If you roll 
 your own, then you can.  Generally, lingo doesn't let you crash 
 regardless of how invalid your code is.  As you've discovered, we've 
 left in a back door.  Use it at your own risk."

The back door the replay referred to is this, in its simplest form:

t = transform()
t[1] = float_value_1
t[2] = float_value_2
...
t[16] = float_value_16

Although simple, that's just the way I would load a new t or change
an existing one. I mean don't use repeat loops if not strictly
necessary.

Hope this help.

Franco

IFC Programming Consultant
http://www.chnexus.com/athroon~/index.htm
mailto:[EMAIL PROTECTED] | [EMAIL PROTECTED]
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to