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 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
On 22/03/2015 at 06:22, xxxxxxxx wrote:
They are, sort of, but its buggy/laggy in that it often won't update when you add or remove symbols and you have to delete the symbolcache file to force a reload.
You could bring the symbols into your Python Plugin by hand. I got tired of this and I'm always using my c4d.dev script to extract the symbols and bring them into a format you can easily read/import from or paste into your Python plugin. It's not only reliable but also gives you some extra shortcuts for handling with resorce symbol and files. The Readme should get you started.
https://github.com/NiklasRosenstein/nr.c4d.dev
On 22/03/2015 at 10:27, xxxxxxxx wrote:
Great, thank you.
-Pim