XSI – Import Model

protected Model ImportModel(String in_FileName) { Model retModel = null; try { Object[] args = new Object[7] { in_FileName, null, false, null, null, siImportShareOptions.siImportShareOptionsAll, null }; Object[] rtn = (Object[])m_xsi.ExecuteCommand("ImportModel", args);

VEX – Delete Points

// // // //Delete Points (Run Over = ‘Detail’) int pts = @numpt; for(int i = pts-1; i >= 0; i–) { removepoint(0,i); }

VEX – Create Quads

// // // //CREATE QUADS //create points (shared among prims) addpoint(0, {-150,0,0}); addpoint(0, {150,0,0}); addpoint(0, {-100,0,100}); addpoint(0, {100,0,100}); addpoint(0, {-150,0,200}); addpoint(0, {150,0,200}); int points[] = primpoints(0, 0); //create prims without