I am currently stuck with a problem using the flattenMap function within a loop. If I evaluate the code for a single object it works perfectly fine. However, as soon as the selection contains more than one object, it still performs the flattenMap operation for only one object within the selection.
for o in selection do
(
addModifier o (unwrap_uvw())
o.modifiers[#unwrap_uvw].setMapChannel 2
o.modifiers[#unwrap_uvw].flattenMap 0.0 #() 0.001 true 0 true true
)
I don’t know what I am doing wrong here?!