Unable to script _Shade command options

Hi,

I’m trying to change the ViewPort and Shade it and save an image of the view by Rhinoscript.

rs.Command(’_-NextViewport Enter’, 1)
rs.Command(’
-Shade View=Active Selected=No DisplayMode=Shaded DrawCurves=No DrawWires=No DrawGrid=No DrawAxes=Yes Enter’, 1)
rs.Command(’
-ViewCaptureToFile)

but when my second line is executed I get prompted for various options by Rhino5. How to provide these options in an automated manner? (Above method to provide options seems not working)

prompt I get after the second line is;
Command: _Enter
Command: _-Shade
Choose Shade settings ( View=Active Selected=No DisplayMode=Shaded DrawCurves=No DrawWires=No DrawGrid=No DrawAxes=Yes ): View=Active
Choose Shade settings ( View=Active Selected=No DisplayMode=Shaded DrawCurves=No DrawWires=No DrawGrid=No DrawAxes=Yes ): Selected=No
Choose Shade settings ( View=Active Selected=No DisplayMode=Shaded DrawCurves=No DrawWires=No DrawGrid=No DrawAxes=Yes ): DisplayMode=Shaded
Choose Shade settings ( View=Active Selected=No DisplayMode=Shaded DrawCurves=No DrawWires=No DrawGrid=No DrawAxes=Yes ): DrawCurves=No
Choose Shade settings ( View=Active Selected=No DisplayMode=Shaded DrawCurves=No DrawWires=No DrawGrid=No DrawAxes=Yes ): DrawWires=No
Choose Shade settings ( View=Active Selected=No DisplayMode=Shaded DrawCurves=No DrawWires=No DrawGrid=No DrawAxes=Yes ): DrawGrid=No
Choose Shade settings ( View=Active Selected=No DisplayMode=Shaded DrawCurves=No DrawWires=No DrawGrid=No DrawAxes=Yes ): DrawAxes=Yes
Choose Shade settings ( View=Active Selected=No DisplayMode=Shaded DrawCurves=No DrawWires=No DrawGrid=No DrawAxes=Yes ): _Enter
Choose Shade settings ( View=Active Selected=No DisplayMode=Shaded DrawCurves=No DrawWires=No DrawGrid=No DrawAxes=Yes ):

Thank you,

Sara

1 Like

Hi Sara - this looks like it may be the same as

-Pascal

Thanks it is and please close this.