Python PolygonMesh.Set example


This simple example shows how to pass in the vertex and polygon data in Python.

Application.CreatePrim("Cube", "MeshSurface", "", "")
oCube = Application.Selection(0)

# tuple of tuples
# one tuple for the X coordinate, one for the Y, and one for the Z
verts = ((-0.5, 0.5, -0.5, 0.5, -0.5, 0.5, -0.5, 5.0), (-0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.0), (-0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -18.0))

# tuple of polygon data
polys = (4, 0, 2, 3, 1, 4, 0, 1, 5, 4, 4, 0, 4, 6, 2, 4, 1, 3, 7, 5, 4, 2, 6, 7, 3, 4, 4, 5, 7, 6)

Application.FreezeObj(oCube)

oCube.ActivePrimitive.Geometry.Set(verts,polys)

To help understand the vertex and polyon data, consider this simple polygon mesh:

Given the above polygon mesh, this snippet:

oCube = Application.Selection(0)

data = oCube.ActivePrimitive.Geometry.Get2()
verts = data[0]
polys = data[1]

print verts
print polys

would print this:

#  ((-3.0, 4.0, 1.0, -2.0), (0.0, -4.0, 0.0, 0.0), (1.0, -4.0, 5.0, 3.0))
# (4, 0, 1, 2, 3)

Why does the Edit menu in the Animation Editor take so long sometimes?


Some users have noticed that when you open the Animation Editor for the very first time, and click the Edit menu, it takes a little while for the Edit menu to appear.

That’s because the Animation Editor loads plugins when you click the Edit menu (for the very first time).

What happens is that when you open the Edit menu for the very first time, the Animation Editor scans the custom command maps looking for any commands in the siFcurve command category (the AE uses a custom command instead of menu anchor points–see the FCurveEditor object in the SDK docs for more information).

This scan causes the plugins to be reloaded, but this happens only once per Softimage session.

Friday Flashback #12


A little over 10 years ago, this review of XSI 2.0 appeared in 3D World, with the tag line “…is this the Softimage we’ve been waiting for?”.

Back then, XSI Essentials cost $8,200 US. Today, a Standalone license of 2012 costs $2995 US.
XSI Advanced costs $12,300. Now, a Network license costs $3745.

Here’s the intro:

Softimage has gone through a turbulent period over the last few years. It’s been tossed between parent companies (Microsoft and Avid) and seen its lead in high-end 3D animation wane, not least thanks to the popularity of Alias|Wavefront’s Maya.

The long-awaited and long-overdue upgrade to Softimage’s 3D animation system, the legendary Softimage|3D, was XSI 1.0, a somewhat lacklustre release in so much as it still relied heavily on Softimage|3D. There was no polygon modelling, import or exporting had to be done via Softimage|3D (and still does actually) and NURBS features were limited. However, it did feature two very important new technologies.

The first was Twister which was the seamless integration of Mental Image’s mental ray rendering system within XSI, complete with visual shading network and finalquality interactive preview rendering. The second was the non-linear animation system, the Mixer, that enabled artists to mix and blend animation clips as if they were mixing tracks of video.

The updated 1.5 version introduced polygon tools and Subdivision Surfaces, which helped workflow considerably. With version 2.0 it seems that Softimage has finally produce the version of XSI that everyone has been waiting for. It’s a beast, and frankly Alias should be worried.

Page 1

Page 2

Page 3

Page 4