Ojah
01-06-2005, 11:46 AM
i am tryin to create a script that changes all the reflection slots from raytrace maps to vray maps. For this i already made this:
for i = 1 to scenematerials.count do
if(classOf scenematerials[i]) == standardmaterial then
(
if (classOf sceneMaterials[i].reflectionMap) == Raytrace then
(
sceneMaterials[i].reflectionMap = VRayMap ()
sceneMaterials[i].reflectionMap.reflect_maxDepth = 1
)
)
)
but that only changes the reflectionmaps in the regular materials, not in the "blend" materials or "multi-sub-object" ones. And of course this is what im tryin to achieve.
Can anyone help me out?
for i = 1 to scenematerials.count do
if(classOf scenematerials[i]) == standardmaterial then
(
if (classOf sceneMaterials[i].reflectionMap) == Raytrace then
(
sceneMaterials[i].reflectionMap = VRayMap ()
sceneMaterials[i].reflectionMap.reflect_maxDepth = 1
)
)
)
but that only changes the reflectionmaps in the regular materials, not in the "blend" materials or "multi-sub-object" ones. And of course this is what im tryin to achieve.
Can anyone help me out?
