PDG and Wrap3 command line utility

   4069   2   0
User Avatar
Member
31 posts
Joined: 1月 2015
Offline
Hi,
I am trying to take advantage of the procedural dependency graph in order to parallelize a command line utility from wrap3
which lives here
https://www.russian3dscanner.com/ [www.russian3dscanner.com]
I am primarily interested in utilizing the command line interface which is fairly straightforward in its use and lives here:
https://www.russian3dscanner.com/docs/Wrap3/CommandLineInterface/CommandLineInterface.html [www.russian3dscanner.com]
the way i set it up is to have an attribute create in tops which creates a counter

i then pass the command:
wrap3cmd compute “D:\projection_experimental.wrap” -s `@counter`
to a generic generator like shown

which seems to compute like shown

The problem is that i only see one geometry file generated as if somehow it is not respecting the counter in order to write out the sequence. Please note that when executing the command from a dos command prompt it writes out the geometry file numbered according to the “counter” value
Any help would be greatly appreciated.
many thanks
Edited by Vasilis Triantafyllou - 2020年1月31日 12:35:01
User Avatar
スタッフ
387 posts
Joined: 8月 2017
Offline
Hi there,

In this instance you do not need the attribute create node. You can simply use the generic generator node and change “@counter” to “@pdg_index”. The 100 work items generated by the Generic Generator node will be indexed from 0…99 so in this use case you can directly use the @pdg_index attribute in your command string.

Here is some more information about using attributes: https://www.sidefx.com/docs/houdini/tops/attributes.html [www.sidefx.com]
Edited by BrookeA - 2020年1月31日 13:51:17
User Avatar
Member
31 posts
Joined: 1月 2015
Offline
OMG it worked perfect thanks so much for the prompt reply and the solution!
  • Quick Links