I'm trying to write a python script that will automate decimation of models using Houdini's polyReduce within Maya. I'm currently stuck on setting the geometry I want to decimate as the input to the polyReduce node. What is the Python command for this? The best I've found in MEL is “AEhoudiniAssetSetInputToSelection”, but I'm not sure what to import to use this with Python, and even if I was I would rather be able to specify the object I want to use rather than having to select it first.
Thanks for any help!
Python Set Input To Node
6404 4 1-
- MBAustin
- Member
- 7 posts
- Joined: 8月 2009
- Offline
-
- awong
- Member
- 818 posts
- Joined: 9月 2013
- Offline
-
- Quazo
- Member
- 5 posts
- Joined: 11月 2013
- Offline
-
- awong
- Member
- 818 posts
- Joined: 9月 2013
- Offline
If you're using 16.0, you can call the
From Python, you'd have to run the MEL commands with
houdiniEngine_setAssetInput
MEL command.// for parameter input
houdiniEngine_setAssetInput "test_null1.input[0].inputNodeId" {"pCube1"};
// for node input
houdiniEngine_setAssetInput "test_null1.houdiniAssetParm_objpath1__node" {"pCube1"};
From Python, you'd have to run the MEL commands with
maya.mel.eval
.
Andrew / アンドリュー
-
- awong
- Member
- 818 posts
- Joined: 9月 2013
- Offline
-
- Quick Links