I want to register a proc and want to call back it when ever i use *translatemark nodes (Shift + f4 ) to move nodes
I used the below command to call the proc ::minanglecorrection3d, but it's not calling the proc once I have done with *translate nodes (Shift + f4 ) to move nodes
catch {hm_framework registerproc ::minanglecorrection3d after_*translatemark nodes 1 1 0.1}
Please help me to register a proc and need to call it whenever I use *translatemark nodes (Shift + f4 ) to move nodes
Best Answer
-
Yes,
this command will unregister the callback:
::hwt::RemoveCallback *translatemark ::minanglecorrection3d
1
Answers
-
Hi,
hm_framework just accepts some special callback events (user profile changed, menu redraw,..)
to add callback to *commands you need to use:
::hwt::AddCallback *translatemark ::minanglecorrection3d "after"
your callback proc must have an argument as placeholder for HM passing *translatemark... into
example
proc ::minanglecorrection3d {star_command} {
puts "Command was performed: $star_command"
.... do your work here
}
1 -
Hi Tinh,
Thanks for your help Its work great, Is there any option to unregister the proc by passing command.
0 -
Yes,
this command will unregister the callback:
::hwt::RemoveCallback *translatemark ::minanglecorrection3d
1 -
Copy that Many thanks, Mr. Tinh.
0