InamuraJIN / ActionRecorder

GNU General Public License v3.0
178 stars 15 forks source link

Play Action on all selected objects #27

Closed Draise14 closed 1 year ago

Draise14 commented 2 years ago

At the moment it's great for a 1 object at a time workflows (active). It would be nice to be able to run the script on all selected objects.

import bpy

for obj in bpy.context.selected_objects:
    bpy.context.view_layer.objects.active = obj

    # Put Operator Chain here
    bpy.ops.ar.record_play()

I use this script to do this, but if the button had this built in it would be great. Run on all selected.

InamuraJIN commented 2 years ago

Thank you! I'll give it a try If you don't mind, please fork the Dev version and push it! https://github.com/InamuraJIN/ActionRecorder/tree/Dev