A lot of MEL commands will automatically identify your selection as the target for the procedure so you can take out the specific reference to your object (pCube1.f[0]). Here are a couple shelf buttons I already had on hand for your convenience: ConvertSelectionToFaces; polyProjection -ch 0 -type Planar -ibd on -kir -md x;…
Not really sure how to setup a shelf button to have the settings I need like I am meant to have "keep image width/height ratio" turned on when its off by default. Making it X, Y and Z I can do but other settings no idea. polyProjection -ch 1 -type Planar -ibd on -kir -md z pCube1.f[0]; Thats what I get from a Z planar…
if you copy this mel to a shelf button then you can do the planar mapping and unfolding in a single action, and use the G key to repeat last. you still need to move it manually and the move tool will lose focus when you run this script but if you just quickly tap rotate then move it regains it without losing the selection.…