Get a pointer to the object being rendered
On 27/02/2015 at 08:59, xxxxxxxx wrote:
If I code a shader in python, is there any way to get a pointer to the object that is being calculated?
Or is this only possible in C++?
On 02/03/2015 at 07:49, xxxxxxxx wrote:
the currently rendered RayObject is defined in the "op" member of the VolumeData member of the given ChannelData. This property is currently only available in the C++ API. Please be aware that a shader may also be used in another context and there is may be no RayObject at all.
On 02/03/2015 at 12:47, xxxxxxxx wrote:
Of course I would check for a RayObject before trying to get access to one of its members.
But, it is only available in C++ because it is not possible to make it available in python or is it just something that will, eventually be included in python too?
On 09/03/2015 at 02:32, xxxxxxxx wrote:
while the Python API is continuously improved, we cannot make any statements about specific future functionality.
On 09/03/2015 at 04:44, xxxxxxxx wrote:
I understand that. And I hope it really gets more powerful.
Although I do program in C++ also, for so many stuff I prefer python as I don't have to compile again and again, even if only changing a single character of my code. And, also, I don't have to startup Windows on my Mac just to compile for Windows ;-)