I've written this small script to auto-select every polygon in the selected objects that faces directly along the X axis. here it is:
selectMode -co;
selectType -smp 0 -sme 0 -smf 1 -pv 0 -pe 0 -pf 1 -puv 0;
polySelectConstraint -o 2 -ob 0 0 -oa 1 0 0 -m 3;
polySelectConstraint -m 0;
but I keep getting the error:
Error: line 3: flag "-orientaxis" available in Vertex, Edge & Face modes
until I open the "Edit polygons > Selection > Selection Constraints..." dialog window and then the script works fine from that point on, even once that dialog is closed.
What gives...?