wallworm
04-13-2012, 04:34 PM
After updating the PhysX plugin to 2.71 in Max 2012 a chunk of code now fails. In fact, the code fails in a vanilla install of Max 2013 too. The following code worked for me in previous versions, though.
/*Make a teapot*/
tp = TeaPot()
/*convert teapot to mesh to pass into PhysX function*/
ConvertToMesh tp
/*Create an empty Editable_mesh to store the new hull*/
newnode = Editable_mesh()
newnode.mesh = nvpx.CreateConvexHull (tp) 44 0 --Exception happens here!
update newnode
The exception that happend:
-- Unable to convert: $Editable_Mesh:Teapot001 @ [0.000000,0.000000,0.000000] to type: Mesh
Any ideas? Is it that I was originally using this function incorrectly (but it magically worked), or is this a new bug?
/*Make a teapot*/
tp = TeaPot()
/*convert teapot to mesh to pass into PhysX function*/
ConvertToMesh tp
/*Create an empty Editable_mesh to store the new hull*/
newnode = Editable_mesh()
newnode.mesh = nvpx.CreateConvexHull (tp) 44 0 --Exception happens here!
update newnode
The exception that happend:
-- Unable to convert: $Editable_Mesh:Teapot001 @ [0.000000,0.000000,0.000000] to type: Mesh
Any ideas? Is it that I was originally using this function incorrectly (but it magically worked), or is this a new bug?
