Flip instance facing : Multiple

Hi,

I’m trying to find a node or python code to flip a bunch of doors flipped in the same way to the other way.
I have searched in this forum but I don’t find.
Is it possible to do it in Dynamo?

Hi @JC.Moreno

Do you really mean ALL?

-biboy

try this: flip_doors.dyn (4.6 KB)

dynamo script:
A

python code:

doors = UnwrapElement(IN[0])
for door in doors:
	door.flipFacing()

OUT = IN[0]

enjoy!

-biboy

Hi @blsalvio,

Thank you for helping. I would like to use a “select model elements” to flip only the selected doors.

hi @JC.Moreno

You can customize the dynamo script. Just pass list of doors in the input of python :slight_smile:

-biboy

Ok. Thank you @blsalvio.

I tried using this script and got this error