MattiaPugliatti / corto

The Celestial Object Rendering TOol (CORTO) is a bundle of codes that can be used to generate synthetic images of celestial bodies
MIT License
13 stars 4 forks source link

Overwrite global parameters with the creation of new instances #3

Open MattiaPugliatti opened 5 months ago

MattiaPugliatti commented 5 months ago

for example, as in "Camera" or "Body", etc.

micmaestrini commented 5 months ago

Some properties of an instance are initialized in the constructor, however they are global variables and therefore new instances would overwrite them in the Blender environment. Examples:

micmaestrini commented 4 months ago

After preliminary review, the following solution is proposed in https://github.com/MattiaPugliatti/corto/commit/bc61c2579ee1303140f8e1d554365c0d2395bb80.