Import Cache From Multiple Folder at once using python

   1247   4   1
User Avatar
Member
11 posts
Joined: Nov. 2018
Offline
I have a multiple cache folder and i want to import all the cache in several "file" node once using python and add a switch node to select the desire cache

any idea how to do that?

Attachments:
ss.png (101.8 KB)

User Avatar
Member
2539 posts
Joined: June 2008
Offline
Create some nodes and populate the parameters.

# Pseudo code.
for file in list_of_files:
    file_node  = node.createNode("file","file1")
    file_node.parm('file').set(file)
Edited by Enivob - May 31, 2021 08:24:14
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
11 posts
Joined: Nov. 2018
Offline
Enivob
Create some nodes and populate the parameters.

# Pseudo code.
for file in list_of_files:
    file_node  = node.createNode("file","file1")
    file_node.parm('file').set(file)
Hey thanks for the reply.


But im not familiar with python can u explain it more deeply?
User Avatar
Member
2539 posts
Joined: June 2008
Offline
Sorry, you'll have to google how to use python.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
11 posts
Joined: Nov. 2018
Offline
Enivob
Sorry, you'll have to google how to use python.
any idea what im doing wrong?

Attachments:
pyImporter.rar (76.4 KB)

  • Quick Links