At 11:43 Uhr +0700 28.11.2002, 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?

You simply can't do that. It is disabled to prevent you from creating invalid transforms too easy.
transform() is a function, which expects no parameters and returns the identy transform.
the help is wrong.
you can set the single transform values, though.

on mBuildTransform aList
retval = transform()
if ilk(aList) <> #list then return retval
if aList.count < 16 then return retval
repeat with n = 1 to 16
retval[n] = aList[n]
end repeat
return retval
end

now call:

tTransform = mBuildTransform([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])

but be prepared, that something screws up, if you are not 100% sure that the values yield a valid transform.
--

|||
a�ex
--
[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