Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

RhinoScript - responding to command prompts & pausing refresh

$
0
0

I have a RhinoScript in which I create an array of points, select them (in code), execute MeshPatch to convert them to a mesh, select the new mesh, then execute ToSubD. The code looks like this after I’ve generated the points, which are in an object array named “arrPtObjects”.

Rhino.UnselectAllObjects
Rhino.SelectObjects arrPtObjects
Rhino.Command _MeshPatch
(need something here to address MeshPatch prompts)

Rhino.UnselectAllObjects
Rhino.Selectobject Rhino.FirstObject
Rhino.Command _ToSubD
(need something here to address ToSubD prompts)

Rhino.DeleteObjects arrPtObjects

Question 1: How can I respond in RhinoScript to the parameters prompts resulting from the MeshPatch and ToSubD commands? I’ve tried searching help docs for this and tried what I found, but nothing worked. The way it works now, the user must respond to the prompts for the code to continue.

Question 2: My point generation is rather time consuming. Is there a way to pause viewport refresh then restart it after the point generation is done?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles