MultiParmTemplate and Python...

   4127   4   0
User Avatar
Member
98 posts
Joined: Sept. 2008
Offline
Dear all,


I'm trying to add a simple multiparm parameter to my HDA entirely created within Python. What I mean is that I want a “multiparm block (list)” like the one in the attached example, and I'm trying to create it with

multi_template = hou.MultiParmTemplate(name='Components', label='Components', default_value=1)
container.addSpareParmTuple(multi_template)

but it does not work… I don't know why, but it is creating a simple IntParmTemplate… and the asCode() method is of not much help here…

so, the question is, how can I create a multiparm from Python?? Any ideas?

thank you all

dagush.-

Attachments:
test_multiparm.hipnc (33.9 KB)

————————-
* skylineEngine project coordinator
* buildingEngine module developer
http//ggg.udg.edu/skylineEngine
User Avatar
Member
89 posts
Joined: April 2008
Offline
Looks like it doesnt work.

Trying to do a quick test here, copying the template from an existing multiparm, causes Houdini to crash faster than a bear in a beehive.

Did you submit a bug report?
User Avatar
Member
98 posts
Joined: Sept. 2008
Offline
Nope. In my experience, all bugs I've found were my own and not actual Houdini bugs.
If you confirm this is not my fault, I'll do it.

cheers

dagush.-
————————-
* skylineEngine project coordinator
* buildingEngine module developer
http//ggg.udg.edu/skylineEngine
User Avatar
Staff
1072 posts
Joined: July 2005
Offline
dagush
Nope. In my experience, all bugs I've found were my own and not actual Houdini bugs.
If you confirm this is not my fault, I'll do it.

In this case, this is a Houdini bug.
User Avatar
Member
98 posts
Joined: Sept. 2008
Offline
Thanks!!!
I've just made the bug report, and quite promptly they sent me an e-mail telling me that this is a known issue as MultiParm tools are not fully implemented yet…

thanks again!!!

dagush.-
————————-
* skylineEngine project coordinator
* buildingEngine module developer
http//ggg.udg.edu/skylineEngine
  • Quick Links