PDA

View Full Version : 3d max 8 script problem


mister-chinaman
03-25-2006, 03:37 PM
i m trying to write a script in 3d max 8 but when i wrote the word

"transform"

Unknown property: "transform" in undefined

Bobo
03-25-2006, 04:09 PM
i m trying to write a script in 3d max 8 but when i wrote the word

"transform"

Unknown property: "transform" in undefined




How about the rest of the code?
If it says Unknown Property in undefined, the variable you are trying to get the transform matrix from does not contain a valid object.
Can we see it please?

mister-chinaman
03-25-2006, 06:42 PM
hay bobo 10x for your help...



"rot=(Bone07.transform * inverse $Point16.trasform)"

mister-chinaman
03-25-2006, 06:59 PM
the "$" was missing at the bone07 but still i get this errors:

-- Error occurred in anonymous codeblock
-- Frame:

-- Unknown property: "trasform" in $Point_Helper:Point24 @ [-45.972961,6.050665,219.040802]

(eulerAngles 1.47163e-006 -27.6503 -5.07396e-006)

(eulerAngles 1.47163e-006 -27.6503 -5.07396e-006)

OK


this is the full script:

dependsOn $Bone07 $Point24
rot=($Bone07.transform * inverse $Point24.trasform).rotation as eulerangles

print rot

Bobo
03-25-2006, 07:27 PM
the "$" was missing at the bone07 but still i get this errors:

-- Error occurred in anonymous codeblock
-- Frame:

-- Unknown property: "trasform" in $Point_Helper:Point24 @ [-45.972961,6.050665,219.040802]

(eulerAngles 1.47163e-006 -27.6503 -5.07396e-006)

(eulerAngles 1.47163e-006 -27.6503 -5.07396e-006)

OK


this is the full script:

dependsOn $Bone07 $Point24
rot=($Bone07.transform * inverse $Point24.trasform).rotation as eulerangles

print rot




.traNsform is missing an N... :)

mister-chinaman
03-25-2006, 07:48 PM
10q bobo it seems to me thet its is work fine now!

CGTalk Moderation
03-25-2006, 07:49 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.