Hi.
I'm working on a script that takes in multiple pieces of geo and is dynamically creating a polyReducion node to be independently controlled.
All works perfectly in Houdini, but in Maya my parameters are not showing up. Is there a different setup for hou.ToggleParmTemplate and hou.FloatParmTemplate to be displayed?
In Houdini:
In Houdini with python creating parameters per mesh:
In Maya:
When pressing the RunScript button in Maya, there is a lag for a moment, and that is it.
I cannot find any info on this topic.
I am creating a new template using .FloatParmTemplate, creating a new param in the hda node UI using .addSpareParmTuple, next is getting the parameter from touple .__getitem__(0), and finally setting reference with .set
Creating new parameters using Python for HDA in Maya.
2432 3 1- Arcadius
- Member
- 2 posts
- Joined: 7月 2019
- Offline
- johnmather
- スタッフ
- 525 posts
- Joined: 8月 2019
- Offline
- Arcadius
- Member
- 2 posts
- Joined: 7月 2019
- Offline
- ben_hearn_10c
- Member
- 1 posts
- Joined: 9月 2022
- Offline
I have exactly the same problem but it is slight different circumstances.
I load a HDA into Maya via script using the following line and like yourself, no input parameters show up
pm.mel.eval('houdiniEngine_loadAsset("{}","{}")'.format(hda_path, sop))
If I then load exactly the same asset into Maya using the Houdini Engine menu:
Houdini engine menu -> Load/Load Recent -> My HDA
Then the input parameters show up fine.
THEN, when I run the loadAsset command via script again, the parameters are now visible and editable...
So in short:
Boot Maya
Load HDA via script -> No params
Load HDA via menu -> Params loaded
Load HDA via script again -> Params loaded...
Is there any info on what might be causing this?
// Ben, 10Chambers, Sweden
I load a HDA into Maya via script using the following line and like yourself, no input parameters show up
pm.mel.eval('houdiniEngine_loadAsset("{}","{}")'.format(hda_path, sop))
If I then load exactly the same asset into Maya using the Houdini Engine menu:
Houdini engine menu -> Load/Load Recent -> My HDA
Then the input parameters show up fine.
THEN, when I run the loadAsset command via script again, the parameters are now visible and editable...
So in short:
Boot Maya
Load HDA via script -> No params
Load HDA via menu -> Params loaded
Load HDA via script again -> Params loaded...
Is there any info on what might be causing this?
// Ben, 10Chambers, Sweden
Edited by ben_hearn_10c - 2022年10月20日 04:14:04
-
- Quick Links