Script Operator Issue
#2
Hi Apratim,

The reason your second script is not working is because you're using the simulation index to get the vertex from the mesh, instead of the event index.

Since the teapot particles are born first, the simulation index for the box particles starts at 2082...so when you call "GetVert" with those simulation indices it returns [0,0,0] because those indices are outside of the range of vertices on the box. Call "GetVert(e)" instead of "GetVert(sInx)", because in your case the event index corresponds perfectly to the number of vertices in each mesh.

As for the crash, thank you for letting me know. I will fix that in the next build.
  Reply


Messages In This Thread
Script Operator Issue - by apratim_appie - 10-31-2019, 07:37 AM
RE: Script Operator Issue - by tyFlow - 10-31-2019, 08:27 AM
RE: Script Operator Issue - by apratim_appie - 10-31-2019, 09:43 AM
RE: Script Operator Issue - by apratim_appie - 10-31-2019, 11:05 AM
RE: Script Operator Issue - by tyFlow - 10-31-2019, 03:19 PM

Forum Jump: