c4d-Module attribute problem
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/04/2011 at 04:18, xxxxxxxx wrote:
Hi.
My plugin can handle multiple cases. It can do stuff if doc.GetMode() is in (c4d.Mpoints,c4d.Medges,c4d.Mpolygons).
The problem is, on startup, the module seems to be not complete, so this code:
class MyCommandData(CommandData) : VALIDMODES = (c4d.Mpoints,c4d.Medges,c4d.Mpolygons) def __init__(self) : # self.VALIDMODES = (c4d.Mpoints,c4d.Medges,c4d.Mpolygons) : doesnt work, too pass
Raises an attribute error.
Of course i could create that VALIDMODES attribute before i need it, but i just wonder why it doesnt work.
Thanks, nux
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/04/2011 at 04:35, xxxxxxxx wrote:
On startup the symbolcache is not built yet. Please define them manually or better later.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/04/2011 at 05:55, xxxxxxxx wrote:
Thanks !