Posted: Mon Jul 16, 2012 5:08 pm
Joined: 16 Jul 2012
Posts: 5
bpy.ops.object.modifier_add(type='FLUID_SIMULATION')
bpy.context.active_object.modifiers[-1].settings.type = 'OBSTACLE'
Which statement can be "export animated mesh " to enable it?
ty for help.
Posted: Tue Jul 17, 2012 9:01 pm
Joined: 05 Apr 2009
Posts: 694
what do you want to do?
apply the modifier before export?
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Posted: Tue Jul 17, 2012 9:08 pm
Joined: 16 Jul 2012
Posts: 5
Just turn on.
bpy.context.active_object.modifiers[-1].?
Posted: Wed Jul 18, 2012 12:02 am
Joined: 05 Apr 2009
Posts: 694
what you mean by turning it on?!
applying it?
bpy.ops.object.modifier_apply(apply_as='DATA', modifier="Fluidsim")
changing its visibility in viewport / render?
bpy.context.active_object.modifiers[-1].show_viewport = False
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Posted: Wed Jul 18, 2012 9:43 am
Joined: 16 Jul 2012
Posts: 5
I just want to turn into the ""export animated mesh" switch.
Posted: Wed Jul 18, 2012 9:46 am
Joined: 16 Jul 2012
Posts: 5
bpy.context.active_object.modifiers [-1].export_animated_mesh = True
not working.
Posted: Wed Jul 18, 2012 10:07 am
Joined: 05 Apr 2009
Posts: 694
bpy.context.active_object.modifiers[-1].settings.use_animated_mesh = True
even though it looks like not working, it does. Move mouse over the checkbox and you'll see it updating
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Posted: Wed Jul 18, 2012 11:52 am
Joined: 16 Jul 2012
Posts: 5
Uhh ty for help, im stupid