Initialize Simulation OPs on COP rop?

   2447   2   0
User Avatar
Member
257 posts
Joined: Nov. 2007
Offline
Hi,

Is there a way to add/enable 'Initialize Simulation OPs' on a cop rop?

I am running a 2d simulation and want to write the result of that simulation to disk, but directly as a png.

On a geometry rop there is a 'Initialize Simulation OPs' checkbox that is useful to make sure the simulation is reset before writing out any geo. I would like to do the same thing, but for writing out my image from cops.

I'm not sure if I can add this as a render_property (perhaps 'initsim' ? -- but this is not showing up as an actual render property, that is just the name of the parameter on the geometry rop).

Alternatively, in my rop network I could trigger a pre-render script python call to perhaps do the same.
Anyone know a python command that might trigger this?

Thanks,
Peter
Cg Supervisor | Effects Supervisor | Expert Technical Artist at Infinity Ward
https://www.linkedin.com/in/peter-claes-10a4854/ [www.linkedin.com]
User Avatar
Member
257 posts
Joined: Nov. 2007
Offline
Found a bit more info here:
https://www.sidefx.com/docs/hdk/_h_d_k__s_o_h_o.html [www.sidefx.com]

int soho_initsim
If this parameter exists and evaluates to a non-zero value, the output driver will initialize all simulation OPs before invoking the soho_program.

This traverses all nodes in the scene and invokes specific methods on certain node types.

So the name of the property might be 'soho_initsim'.
I wonder if I can add that to a fetch rop as well.
Cg Supervisor | Effects Supervisor | Expert Technical Artist at Infinity Ward
https://www.linkedin.com/in/peter-claes-10a4854/ [www.linkedin.com]
User Avatar
Member
257 posts
Joined: Nov. 2007
Offline
One more possible avenue.
Looks like the shell rop has it on the scripts tab, so perhaps I could prepend an empty shell rop to my fetch rops (fetching the cop rops).
Cg Supervisor | Effects Supervisor | Expert Technical Artist at Infinity Ward
https://www.linkedin.com/in/peter-claes-10a4854/ [www.linkedin.com]
  • Quick Links