17.04.2014 Views

slides

slides

slides

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Python ObjectBegin / End<br />

• At present there is a bug in the python version of<br />

ObjectInstance which does not allow rib file generation<br />

• However it will work in direct mode where the rib stream<br />

is fed directly into the renderer<br />

• To do this we use the following<br />

1 # if we use __render as the file name we go to<br />

2 # immediate mode and the rib stream is passed directly to<br />

3 # the renderer.<br />

4 # if we specify framebuffer in the Dispalay option we render to screen<br />

5 # if we specify file we render to file<br />

6 filename = "__render"<br />

7<br />

8 ri.Begin(filename)<br />

Saturday, 23 October 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!