I have two objects "ObjectA" and "ObjectB". Object A when selected extrudes up in the z direction. Object B when selected extrudes down in the z direction.
Currently I have two different buttons each having their own script. One for A the other for B.
I would like to have one button. So this is where I need a script and it gets tricky. If Object A is selected, it will run the script, else it does nothing. If object B is selected it runs the script, else it does nothing.
I hope I am descriptive enough..