0
2 Jan/12

[news] td-diary, a new section

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

Share
1
2 Jan/12

[a td diary] agGradientBackground

In this post I tell you the problems that I found developing agGradientBackground, it’s not a tutorial is only a diary…

Share
5
2 Jan/12

[addon] agGradientBackground

My colleage Manu Linares asks to create a gradient background. Here is:

Share
0
18 Aug/11

[News] Starting a more complex project..

I’d finished my ICE tests, now I’ll start a more complex project. I expexted to show something soon… :)

Share
3
18 Aug/11

[ICE deformer] agRollUp

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.

Share
2
10 Aug/11

[Python] store method calls errors inside 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!!

Share
0
4 Aug/11

2d convex hull

My firsts tests with ICE modeling, a 2D convex hull.

Share
1
1 Aug/11

agFrustrum

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.

Share
1
5 Apr/11

agMathParser execute twice bug fixed.

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)

Share
33
4 Apr/11

agMathParser: Math expression –> ICE

[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)

Share