Re: Inherit from a Softimage class

2012-07-15 Thread jo benayoun
Hey Chris, I assume you're referring to that part: you're able to inherit some classes of the C++ API [..] and create a python binding to it using the Python API. There is no magic. Once you've inherited the desired class in cpp (in which the CBase is part of the inheritance tree), write your

Re: Inherit from a Softimage class

2012-07-12 Thread Jeremie Passerin
Thanks Jo, That was more a thinking I had rather than a real intention to do it... I'm looking for different way to organize my code. Thanks for the advice ! On 11 July 2012 12:10, jo benayoun jobenay...@gmail.com wrote: Hey Jeremie, considering the COM architecture (interfaces inheritance) +

Re: Inherit from a Softimage class

2012-07-11 Thread jo benayoun
Hey Jeremie, considering the COM architecture (interfaces inheritance) + the python binding (dynamically invoking), this is really a bad idea to even think to inheritance... The most easiest and elegant way that I think of is to wrap the desired object into a class. On another hand, you're able

Inherit from a Softimage class

2012-07-10 Thread Jeremie Passerin
Hi list, I'm pretty sure I know the answer to that one but just wondering. Do we have a way in Python to create a class that inherits from a class of the softimage SDK ? Let's say I want to extend the SIVector3 or the Null object ? Any chance I could do something like that ? class