Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
On 08/11/2014 at 09:21, xxxxxxxx wrote:
Hi I'm trying to figure out something very simple - how with a python tag - to have it create a cube in the scene upon initialisation - so that it persists, and can be accessed globally. The problem I'm having is that the external renderer is recreating another cube by reinitialising the document.
This is the example code - how would I change it ? Thanks..
import c4d #Welcome to the world of Python
doc.InsertObject(c4d.BaseObject(c4d.Ocube)) def main() : pass
On 08/11/2014 at 09:30, xxxxxxxx wrote:
A tag is simply not the right tool to get done what you want. Why can't you use a Python Generator instead?
On 08/11/2014 at 09:53, xxxxxxxx wrote:
Yeah I'll try that. Makes sense. Thank you!