I am looking for some syntax help in attaching commands that have to do with window pane display. Example: Button/checkbox to toggle joints/geometry/curves/etc…
Heres the first way I tried it :
frameLayout -w 450 -l "Visibility" -cll true -cl false -bs "etchedOut"; columnLayout; checkBox -l "Curve Visibility" -al left -occ "string $activePanel = `getPanel -underPointer`; if(`modelEditor -q -nurbsCurve $activePanel `!=0)modelEditor -e -nurbsCurve 0 $activePanel ; else modelEditor -e -xray 1 $activePanel ;";
and I tried adding the if/else statement before UI and calling if variable is 0 or 1 and change to 1 or 0 and that didnt work either…this is possible right?