Jump to content

multiparm block in python


Adept

Recommended Posts

Hi everybody, I'm creating nodes using python and I have a question.

Is there any way to update MultiparmBlock parameters inside of a network using top level interface of this network?

block=hou.FolderParmTemplate("block","Multiparm block",folder_type=hou.folderType.MultiparmBlock)
block.addParmTemplate(hou.StringParmTemplate("parm#", "Parameter #", 1, "", hou.parmNamingScheme.Base1,hou.stringParmType.Regular))
inside_node.setParmExpressions({"numobj": "ch(\"../block\")"})

This code gives me multiparm block inside of my asset that dynamically matches the number of items on the top level. But I can't get any referencing on parameters inside the network using the # symbol.

I've tried folderType.ImportBlock for the top level node, but op:inside_node in source field (import settings) doesn't seem to work too. And import settings are only available using gear menu, not python (am I wrong?).

Does everybody know if it's implemented at all?

Edited by Adept
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...