Skip to content

Instantly share code, notes, and snippets.

@thu0x31
Last active June 25, 2021 10:44
Show Gist options
  • Save thu0x31/8635a4f82d610cb2308d29e278cccef5 to your computer and use it in GitHub Desktop.
Save thu0x31/8635a4f82d610cb2308d29e278cccef5 to your computer and use it in GitHub Desktop.
Houdini vex Multiparm Block to array.md
  • Parameter: Folder
    • Folder Type: Multiparm Block
      • ...
function int[] folderListParam(string sizeChannel; string targetChannel) {
    int size = chi(sizeChannel);
    int params[];

    for (int i = 0; i < size; i++) {
        params[i] = chi(targetChannel + itoa(i + 1));
    }

    return params;
}
@thu0x31
Copy link
Author

thu0x31 commented Jun 25, 2021

dict param[];

for(int i = 0; i < len(targetList); i++) {
    int target = targetList[i];
    param[target]['use'] = chi("../controller/use" + itoa(i + 1));
    param[target]['arc'] = chf("../controller/arc" + itoa(i + 1));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment