THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/09/2010 at 11:11, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ; Mac OSX ;
Language(s) : PYTHON ;
---------
Hi all,
I can't seem to figure out how to use c4d constants in my python code. For example, I want to use the the c4d.documents.SaveDocument function. It has these saveflags:
SAVEFLAG_SHOWERROR
_SAVEFLAG_SAVEAS
_ SAVEFLAG_DONTADDTORECENTLIST
SAVEFLAG_AUTOSAVE
_<_dt id="c4d.s.save"_>_I've tried using c4d.SAVEFLAG_SHOWERROR and c4d.documents.SAVEFLAG_SHOWERROR, but those don't work. I can lookup the number that represents these flags in coffeesymbols.h, but obviously I would prefer to use the constant's name instead. :)
I couldn't find any info about this in the python documentation I downloaded from the plugin cafe site, so any help would be appreciated.
Cheers,
- Ryan