Issue accessing context options inside a 'For each' block

   87   1   0
User Avatar
Member
1 posts
Joined: April 2017
Offline
Hi everyone !

I am having a hard time trying to use the ‘For each’ LOP.
In the attached example scene, I am trying to perform a nested iteration : over all the model variants of all the components present on my stage.

On both of the ‘For each end’ LOPs, I rename the iteration variables to prevent any conflict. The loop does occur, but I fail to correctly edit the current iteration's context options via a ‘Python script’ LOP. As the documentation suggests, I am trying to extract the current primitive's name from its full path.

To debug, I write some of the current context options as the metadata of a newly-created primitive from inside the loop.

Please help!

Cheers,
Pierre.

PS: I am running a Houdini Core Version 18.0.532 license.

Attachments:
03_00_foreach.hip (325.2 KB)
20200910__solaris_loop_LOPnetwork.png (147.6 KB)

User Avatar
Member
10376 posts
Joined: July 2005
Offline
Does this response help you at all? https://www.sidefx.com/forum/topic/75412/#post-322668 [www.sidefx.com]
jason iversen, pipeline technology supervisor @ weta digital
also, http://www.odforce.net [www.odforce.net]
  • Quick Links