I created a new section, td-diary.
In this section, I tell you the problems that I found when I make addond, compounds…
This section is not a tutorials one, are simply some dev notes
I created a new section, td-diary.
In this section, I tell you the problems that I found when I make addond, compounds…
This section is not a tutorials one, are simply some dev notes
In this post I tell you the problems that I found developing agGradientBackground, it’s not a tutorial is only a diary…
I’d finished my ICE tests, now I’ll start a more complex project. I expexted to show something soon…
Other ICE tests, a spiral deformer that keeps distances.
The interesant thing in this deformer is that internally resolve a equation using Newton-Raphson method.
I like to check alternatives to the classics programming paradigmas, so…
Sometimes, writing code, I need a method that returns a data, but I need that if the method fails, returns information about the reason of the error.
Returns different data information in each case is not a solution that I like too much because the valid returns type influence the error returns type and viceversa. So check if the returns is valid or not can be not a simple line.
A solution that I found is store errors inside the method, so I can access that information if I need
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import inspect def f(x): felf = globals()[inspect.getframeinfo(inspect.currentframe()).function] if x == 0: felf.myLastError = "error: %d" % x return None return x res = f(3) if res == None: print f.myLastError res = f(0) if res == None: print f.myLastError res = f(3) if res == None: print f.myLastError |
I want to test it with decorators… python rules!!
A simply ICE compound to detect what objects are visible by camera.
It’s gives object and components visibility state, in static frame or animation.
A user (thanks Alex) report me a bug. The tool crash in the sexcond exection. Now it’s fices and you can download it from the web.
As I responsed to Cesar (at the agMathParser comments), a second version will be released when I have more user feedbacks. This version was a personal one and I’d published it becouse I think that it could be userfull but I know that to be a public tool would be nice to allows a better customization to add new nodes and perhaps supports to others areas (render tree or expressions simplify)
[Version 1.1 reuse bug fix added]
I want to share this small tool. It is a math expression to ICE compound converter. (Softimage 2011)
Donwload agMathParser 1.1 (Right click – SaveAs or drag and drop into softimage)