Home Marmoset

python script to adjust max cage offset of selected bake groups all at once

polycounter lvl 11
Offline / Send Message
--E-- polycounter lvl 11
I'm looking for an easy way to adjust the max cage offset of dozens of bake groups all at once. I'm guessing the easiest way to do this is via python. Does anyone have any insight if this is possible?

Replies

  • --E--
    Options
    Offline / Send Message
    --E-- polycounter lvl 11
    Luciano Laudani wrote this, so I thought I'd share :)

    import mset

    selected_folders = [x for x in mset.getSelectedObjects() if type(x) == mset.TransformObject]

    for folder in selected_folders:
        baker_targets = [y for y in folder.getChildren() if type(y) == mset.BakerTargetObject]
        for z in baker_targets:
            z.maxOffset =9




Sign In or Register to comment.