Hi there! Yes I have the commands ! What im looking for its how to check the state of the "Selection Constraint".
For instance, I have this script for toggle between Transform Constraint
string $SlideStatus = `xformConstraint -query -type`;
if ($SlideStatus == "none") {
dR_DoCmd("slideEdge");
inViewMessage -smg "Slide Edge is On" -pos topCenter -bkc 0x00000000 -fade;
}
else if ($SlideStatus == "edge") {
dR_DoCmd("slideSurface");
inViewMessage -smg "Slide Surface is On" -pos topCenter -bkc 0x00000000 -fade;
}
else if ($SlideStatus == "surface") {
dR_DoCmd("slideOff");
inViewMessage -smg "Slide Transform is Off" -pos topCenter -bkc 0x00000000 -fade;
}
This works like a charm ! But now, I want to do the same with "Selection Constraint"
string $ConstraintStatus = `xformConstraint -query -type`;
if ($ConstraintStatus == "none") {
dR_DoCmd("selConstraintEdgeRing");
inViewMessage -smg "Constraint Edge Ring is On" -pos topCenter -bkc 0x00000000 -fade;
}
else if ($ConstraintStatus == "???????") {
dR_DoCmd("selConstraintOff");
inViewMessage -smg "Constraint is Off" -pos topCenter -bkc 0x00000000 -fade;
}
Im dont know how to check the status of the Selection Constraint (missing code at the ????) and even if this belongs to xformConstraint.
Hope now its more clear, im quite new at this!
Thank you for you answer!