PDA

View Full Version : apply Point Cache modifier to multiple objects


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...

Pjanssen
01-12-2010, 07:11 AM
It seems to work just fine for me, when copying the code you've posted...

edit: ignore this, I didn't read carefully...sorry.

CGTalk Moderation
01-12-2010, 07:11 AM
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.