How to Specify Values in Menu using rs.Command

I’m trying to automatically transform an object using BoxEdit.

I have rs.Command("_SelAll _BoxEdit") however I would like to specify the values for the Rotation. It doesn’t work when I do this.

Is there any way to pass in values for menu items to rs.Command?

Hi @Shawn_Broukhim,

unfortunately _BoxEdit cannot be filled with values from the command line or via rs.Command. Since you’re running a script already, why not use rs.ScaleObjects ?

import Rhino
import rhinoscriptsyntax as rs

def DoSomething():
    objs = rs.AllObjects(select=True)
    if not objs: return
    origin = Rhino.Geometry.Plane.WorldXY.Origin
    xyz_scale = (2.0,2.0,2.0)
    rs.ScaleObjects(objs, origin, xyz_scale, copy=False)
    
DoSomething()

c.