Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / Creating Rigid Bodies at succesive times using Python
  RSS 2.0 ATOM  

Creating Rigid Bodies at succesive times using Python
Rate this thread
 
36728
 
Permlink of this thread   Subscribe to this thread
avatar
  • smshaler
  • Posted: 16 November 2009 02:43 AM
  • Total Posts: 16
  • Joined: 29 May 2008 07:26 PM

ICE allows one to create rigid bodies at at given rate. I would like to
do the same thing using Python.

The Application.FirstFrame() or Application.NextFrame() commands do move the animation but all
rigid bodies end up appearing at the first frame if one goes to the beginning of the animation.
A reference to appropriate command would be great.

To create rigid bodies within a Python script it is possible to do something like this.

---------------

Application.FirstFrame()
NUMFLAKES = 10
for i in range(NUMFLAKES):
oflake = application.CreatePrim("Cube”,"MeshSurface")
oflake.SclX = 5
...
oflake.RotZ = -3
Application.NextFrame() # Moves playback control but rigid body appears at frame 1 in playback
Application.CreateActiveRigidBody(oflake)
---------------



Replies: 0




   
  Settings Choose Theme color: