grabbing preset transforms: script error: Invalidparameter 2004-03-04 - By Ken Hubbell
Back You have to do something like this:
tTransform = transform()
repeat with i = 1 to 16 tTransform[i] = gDatabase[whichPage][3][i] end repeat
scene.Model("cameraOriginPoint").transform = tTransform
Ken
-- --Original Message-- -- From: dir3d-l-bounces@(protected) [mailto:dir3d-l-bounces@(protected)]On Behalf Of welchc@(protected) Sent: Thursday, March 04, 2004 1:46 PM To: dir3d-l@(protected) Subject: Re: [Dir3d-l] grabbing preset transforms: script error: Invalidparameter
I keep getting a "script error: Invalid parameter" on this:
tTransform = transform() tTransform = gDatabase[whichPage][3] scene.Model("cameraOriginPoint").transform = tTransform
gDatabase[1][3] is just a regular transform with the 16 params:
transform(0.86024,-0.50989,-0.00058,0.00000, 0.10525,0.17646,0.97866,0.00000, -0.49891,-0.84195,0.20547,0.00000, -344.14624,-579.14862,132.89607,1.00000)
These transforms are set up in my list as multiple start point and end points for an interpolation script. I was trying to avoid putting separate list entries for x pos, y pos, z pos, x rotation y, y rotation, z rotation for each of the beginning and end point of my interpolation. I was hoping the list would be "cleaner" using transforms.
For reference this is a sample of what my list looks like:
[["Name": "Turret Shell & Basket", "Description": "", "Start-CamPosition": "transform(0.86024,-0.50989,-0.00058,0.00000, 0.10525,0.17646,0.97866,0.00000, -0.49891,-0.84195,0.20547,0.00000, -344.14624,-579.14862,132.89607,1.00000)", "End-CamPosition": "transform(0.86024,-0.50989,-0.00058,0.00000, 0.10525,0.17646,0.97866,0.00000, -0.49891,-0.84195,0.20547,0.00000, -166.22955,-299.41473,66.14555,1.00000)", "Models Used": ["Basket", "Turret Shell"], "AssociatedImage": "", "original Bom Order": "original Bom Order 1", "LVL": "LVL 1", "FN": "FN 1", "Item#": "Item# 16102106-011", "Comp Rev Lvl": "Comp Rev Lvl V", "Item Desc": "Item Desc TURRETSHELL/BASKETINSTL", "Qty": "Qty 1", "UM": "UM KT"]]
Thanks,
Carl
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ 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
|
|