Hi every one im new here and im a beginner in 3d studio max , so Im asking for your understanding!:) i've copy this script from this video http://vimeo.com/21174115
1frameStart = (animationRange.start as integer / ticksPerFrame)
2frameEnd = 10
3frameEnd = "D:\back up\PHOTOSHOP SC5\export_to_flash"
4fileBase = "PathFinderTest_"
5
6max select all
7 abc = selectior as array
8 clearSelection()
9for f = frameStart to frameEnd do
10(
11 sliderTime = f
12 select abc
13 maxOps.cloneNodes abc offset:[150,0,0] expandHierarchy: true cloneType:#copy actualNodeList:()
14 convertTo result SplineShape |
15 firstObj = result[1]
16 if (result.count > 1) then -- if there are multiple shapes theywill be merged into one
17 (
18 numOfltems = result.count
19 for i = 2 to numOfltems do
20 (
21 addandweld firstObj result [i] -1
22 )
23 )
24 else -- if there is a single shape it will be converted to editable spline
25 (
26 convertTo firstObj SplineShape
27
28 )
29 -- =========================== --
30 if f < 10 then -- export file name padding test
31 (
32 exportDir = fPath+fileBase+"000"+f as string +".ai"
33 resetXForm firstObj
34 convertToSplineShape firstObj
35 select firstObj
36 exportFile exportDir selectedOnly:true
37 )
38 else
39 (
40 exportDir = fPath+fileBase+"00"+f as string +".ai"
41 resetXForm firstObj
42 convertToSplineShape firstObj
43 select firstObj
44 exportFile exportDir selectedOnly:true
45 )
46 select firstObj
47 max delete
48 clearSelection()
49
50 )
but when im using it i have an error messege in listener window
0
10
"D:\back up\PHOTOSHOP SC5\export_to_flash"
"PathFinderTest_"
OK
-- Error occurred in anonymous codeblock; filename: C:\Users\xaralabakos\Documents\3dsMaxDesign\scenes\exportto_AI.ms; position: 210; line: 7
-- Unable to convert: undefined to type: Array
OK
-- Error occurred in anonymous codeblock; filename: C:\Users\xaralabakos\Documents\3dsMaxDesign\scenes\exportto_AI.ms; position: 445; line: 14
-- Syntax error: at bad, expected
-- In line: convertTo result SplineShape |
do anyone know what i have to do ? please healp !! !!