# # # Rescale figure and set feet at floor level floorl # # # set new scale here: #new_scale = 12.0 # Brobdingnabian # new_scale = 20.0 # Draag # new_scale = 1.0/12.0 # Lilliputian # new_scale = 1.0/20.0 # nanomite # # Select the figure you want to rescale and run this script. # It will rescale the figure and place it on the floor. Some # minor adjustment may be necessary to get correct feet contact # after rescaling. Select actor equal body and adjust yTran. # new_scale = 4.0 scene = poser.Scene() fig = scene.CurrentFigure() actor = fig.Actor("Body") pscale = actor.Parameter("Scale") old_scale = pscale.Value() pscale.SetValue(new_scale) fig.DropToFloor() hip = fig.Actor("Hip") py_hip = hip.Parameter("yTran") ylift = new_scale*py_hip.Value() pscale.SetValue(old_scale) fig.DropToFloor() py = actor.Parameter("yTran") py.SetValue(ylift) pscale.SetValue(new_scale) fig.DropToFloor() actor = fig.Actor("Body") NF = scene.NumFrames() f = 1 while f < NF : actor.DeleteKeyFrame(f) f = f + 1