THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/09/2010 at 15:25, xxxxxxxx wrote:
Cinema 4D Version: R12
What is a good way of taking care of your plugin history?
As a hard core coffee man I've used try() and Catch()
to set old versions to default values not present.
Now in Python that might be helped by C++ techniques,
do you hide old versions (ID's) and simply let the new "take over"
or is there a common way of doing it within the plugin?
ps. maybe time for a Python option in the topic language? ds.
On 09/09/2010 at 07:20, xxxxxxxx wrote:
Python also supports try, catch. This might work in proper cases but the best solution IMHO is the use of decorators in Python. With decorators you can redirect function calls and implement a version dependency.
On 09/09/2010 at 08:04, xxxxxxxx wrote:
Thanks, will look at that.