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

Send "enter" to the rhino command line

$
0
0

@dchristev wrote:

Hi guys

I'm trying to create a script to automate the texture mapping of a mesh based on a surfaces coordinates, however the rhino command line always gets stuck at picking target objects, how do I send the enter key or spacebar function to the command line so that the rest of the command can be executed? I still need to set the custom mapping object in the command.

if active:

sc.doc = Rhino.RhinoDoc.ActiveDoc

meshes = rs.ObjectsByType(32)
surfaces = rs.ObjectsByType(8)

objcurrent = meshes[0]
print objcurrent
rs.Command("_-ApplyCustomMapping " + "selid " + str(objcurrent))
rs.Command("enter")

Thanks
Daniel

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5821

Trending Articles