Ideal approach to writing Copernicus textures?

   851   0   0
User Avatar
Member
3 posts
Joined: Feb. 2024
Offline
So basically, I make a ROP Image Output for each texture and assign it in a Copernicus network, then in the script option for the ROP nodes I use the Post-Write Script option with a one liner python code of
hou.node("../rop_image2").parm('execute').pressButton()
to trigger the next ROP Image Output in sequence. Is this approach the intended way to go about this practically? I know it works and gets the job done, it's just that I am wondering If I'm just reinventing the wheel here and that there could've been a more quicker setup to go about this that I wasn't aware of.

Alternatively I use the following code when theres more than 2 rop's to output:

for node in hou.node("/img/copnet1").children():
    if node.name().startswith("rop_image") and node.name() != "rop_image1":
        node.parm('execute').pressButton()




Any advice is appreciated.
Edited by arielclarkex - Feb. 9, 2025 04:31:29

Attachments:
Overview.png (1.9 MB)

  • Quick Links