cleobule
11-03-2009, 10:47 AM
Hi !
I am triing automatically apply & calculate a pointcache on all my flex modifiers.
I also want the file of each pointcache to have a different names because I have got a lot of different scenes and do not want them to erase each others.
My problem is that when i change the name of the pointcache file with the script below, the pointcache is in error when I record. "Error Record cache file".
on BT_Calculate pressed do
(
NameScene = substituteString maxfilename ".max" "_"
PointCacheName = NameScene + CHARACTER.name + ".xml"
CHARACTER.modifiers[#Point_Cache].filename = PointCacheName
....
)
Do I have to use the method "new" which is in the pointcache UI ? But I do not see any reference of it in the maxscript doc.
Does anyone have an idea ?
thank you in advance.
Daniel
I am triing automatically apply & calculate a pointcache on all my flex modifiers.
I also want the file of each pointcache to have a different names because I have got a lot of different scenes and do not want them to erase each others.
My problem is that when i change the name of the pointcache file with the script below, the pointcache is in error when I record. "Error Record cache file".
on BT_Calculate pressed do
(
NameScene = substituteString maxfilename ".max" "_"
PointCacheName = NameScene + CHARACTER.name + ".xml"
CHARACTER.modifiers[#Point_Cache].filename = PointCacheName
....
)
Do I have to use the method "new" which is in the pointcache UI ? But I do not see any reference of it in the maxscript doc.
Does anyone have an idea ?
thank you in advance.
Daniel
