evilme
01-11-2010, 07:29 PM
hey guys i'm trying to write a script that applies the Point Cache modifier to multiple objects, and then load the .pc2 file for each.
here's the code i wrote, it works on my 32-bit XP but now i'm using 64-bit Windows 7 it refuses to work.
meshArray = for i in $ where classof i == Editable_Mesh collect i
for n = 1 to meshArray.count do
(
pcMod = PointCache()
pcMod.filename = "C:\\pointcachefiles\\" + meshArray[n].name + ".pc2"
AddModifier meshArray[n] pcMod
)
the error it returns is as below
-- Syntax error: at ), expected <factor>
-- In line: )
please help... thanks a lot...
here's the code i wrote, it works on my 32-bit XP but now i'm using 64-bit Windows 7 it refuses to work.
meshArray = for i in $ where classof i == Editable_Mesh collect i
for n = 1 to meshArray.count do
(
pcMod = PointCache()
pcMod.filename = "C:\\pointcachefiles\\" + meshArray[n].name + ".pc2"
AddModifier meshArray[n] pcMod
)
the error it returns is as below
-- Syntax error: at ), expected <factor>
-- In line: )
please help... thanks a lot...
