On 22/03/2015 at 04:18, xxxxxxxx wrote:
I always assumed that .h files are not read by python, but looking at the example Py-LookAtCamera I think i am wrong!
The example uses c4d in front of the variable, see below, without defining it.
How is it done?
data.SetBool(c4d.PYLOOKATCAMERA_PITCH, True)
Here the .h file of the example
#ifndef _Tpylookatcamera_H_
#define _Tpylookatcamera_H_
enum
{
PYLOOKATCAMERA_PITCH = 1000
}
#endif