|
Thanks for the fast. I do see how you can just wrap up the functions into an UNDO like that.
However, I was just curious if there was a way to just do a simple “UNDO” of the spinner value.
Just like in max if I change a spinner, then undo the spinner value will go back to the last value.
Of course the spinner is tied to something so it changes more than just the user input value.
Here’s a simple bit of code:
try (destroydialog Base_Roll) catch() rollout Base_Roll "Title HERE"
(
spinner spn01 "SPINME"
on spn01 changed val do
(
with undo on
(
print spn01.value as string
)
)
) createDialog Base_Roll 200 200
I’m just wondering if you can use the UNDO to just change the spinner value back to the last value. This doesn’t make any sense to have the spinner print the value but I’m just curious how you’d be able to make the UNDO command know to go back to the last spinner value. Do you have to capture the current spinner value in some varable and store it and then hopefully the UNDO command would recall it.
Thanks for the help so far.
max2010-2012 windows xp64bit
nvidia QuadroFX
|