private static void SetLocks(IINode node, List<Boolean> locks) { node.SetTransformLock(0, 0, locks[0]); node.SetTransformLock(0, 1, locks[1]); node.SetTransformLock(0, 2, locks[2]); node.SetTransformLock(1, 0, locks[3]); node.SetTransformLock(1, 1, locks[4]); node.SetTransformLock(1, 2, locks[5]); node.SetTransformLock(2, 0, locks[6]); node.SetTransformLock(2, 1, locks[7]); node.SetTransformLock(2, 2, locks[8]); }