addModifier function: Need some advice

I try to follow this example script but dont work and i really apreciated some advice
thanks

AttachmentSize
error_1.jpg250.76 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
maxwell3d's picture

Thanks very much! You are

Thanks very much! You are very kind.

miauu's picture

You can't add the modifier

You can't add the modifier because the name of the selected box is Box001, but you try to add modifier to Box01
So, to avoid this use:
addModifier $ ....
or
addModifier selection[1] ....
-- the code below will add bend modifier to selected object
(
bendM = Bend angle:45 direction:50
addModifier selection[1] bendM
)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.