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

Silent Execution

$
0
0

@Alexander_Kaplan wrote:

I'm using a slightly modified version of http://wiki.mcneel.com/developer/scriptsamples/exportlayerobjects for a mass fbx export but have to hold down enter for a minute while it exports. Silly. Is there a reason the "-" flag on Export wouldn't work?

Snippet with the rhino command

If IsArray(arrSelected) Then

		' Generate a modified path string
		' that includes the layer name
		strFile = strPath
		strFile = Replace(strFile, ".3dm", "_" & strLayer & ".fbx")
		' strFile = strLayer & ".fbx"

		' Export the selected objects
		Rhino.Command "_-Export " & strFile, 0

	End If
Next

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5804

Trending Articles