THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/03/2011 at 05:58, xxxxxxxx wrote:
Oh, of course you can.
Btw, depending on what you're doing its more comfortable to use global variables for all parts in your dialog.
var mod_pos, mod_ang, mod_sca;
/// Dialog definitions etc ..
MyDialog::Command(id,msg) {
mod_pos = GetCheckbox(CHK_MOD_POS);
mod_ang = GetCheckbox(CHK_MOD_POS);
mod_sca = GetCheckbox(CHK_MOD_POS);
if (id == MY_BUTTON) {
var doc = GetActiveDocument();
var op = doc->GetActiveObject();
if (!op) { return False; }
doc->AddUndo(UNDO_CHANGE,op); //R12 Constant
if (mod_pos == true) { op->SetPosition(vector(100)); }
if (mod_ang == true) { op->SetRotation(vector(1.23)); }
if (mod_sca == true) { op->SetScale(vector(1.3)); }
}
}