THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/06/2011 at 07:14, xxxxxxxx wrote:
Header File parser for Py4D - BETA
- - - - - - - - - - - - - -
I was sick including the ID's for a dialog created in ResEdit myself into
Python. Therefore I wrote a Header File parser. It will only analyze an
enum statement.
First, download the package below and copy the folder to your Py4D library.
In your plugin, use this code to parse the c4d_symbols.h and insert
the ID's into the global scope.
from HeaderFileParser import parse
from os.path import join, abspath, dirname
parse(
join(
dirname( abspath(__file__)),
"res",
"c4d_symbols.h",
),
globals(),
)
You can now use the ID's defined in c4d_symbols.h in you Plugin.
Remember, this is still BETA. If any problems occure, please report it !
As this is still BETA, you might only use this while you are still
developing your plugin and your GUI might change.
Cheers,
Niklas
//Link fixed
EDIT: The c4dtools library now does this for you!