import rhinoscriptsyntax as rs
import random as rn
render_folder="C:\\Users\\Abdul Azeem\\Desktop\\design computing\\render\\"
num_of_frames = rs.GetInteger('Number of Frames to output',10)
def render_step(render_folder,sequence_num):
file_name = str(int(sequence_num)).zfill(5)
file_path = " " + render_folder + file_name + ".png"
rs.Command("_-ViewCaptureToFile" + file_path + "_Enter" )
for frame in range(num_of_frames):
circle=rs.AddCircle((0,0,0),10)
x=frame*2
y=frame*5
z=frame*10
rs.MoveObject(circle,(x,y,z))
render_step(render_folder,frame)
rs.DeleteObject(circle)
Asked
Active
Viewed 135 times
0

ti7
- 16,375
- 6
- 40
- 68
-
Hello and welcome to the site. Please describe the issue you are having, add tracebacks and ask a question about what you don't understand and we will try to help. – Almog-at-Nailo Jul 26 '21 at 14:46
-
please read title – Uzair Syed Jul 26 '21 at 14:47
-
1please read [How to ask a question](https://stackoverflow.com/help/how-to-ask) – Almog-at-Nailo Jul 26 '21 at 14:53
1 Answers
1
if you look at the command line you'll see "Save file name ( Unit=pixels Width=1387 Height=614 Scale=1 LockAspectRatio=No DrawGrid=No DrawWorldAxes=No DrawCPlaneAxes=No TransparentBackground=No NumberOfPasses=500 Autoname=ViewCapture Browse ): E:\export_trials\00009.png_Enter"
the "_Enter" got joined to the command string.
use " _Enter" starting with a space instead of "_Enter"

mohammad Abdelkhalek
- 11
- 2