documentation for the mel commands available with the plug i

   4031   6   3
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
hey guys, where can I get documentation on what commands are available with the engine plug in? so far I have found houdiniEngine and houdiniAsset. I want to write some mel scripts for hooking up meshes to assets, but in order to do so, I need to be able to do things such as return the newly created asset name, etc.

than you!
-G
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
You probably want to use this to list out the assets from an OTL file:
houdiniAsset -listAssets $assetLibraryFilePath
And use this to instantiate the asset:
houdiniAsset -loadAsset $assetLibraryFilePath $asset

Note that the $asset needs to be the fully qualified asset name. The listAsset flag will return these names if you're unsure. For example:
houdiniAsset -loadAsset “/path/to/SideFX__compactcar.otl” “SideFX::Object/compactcar”
Andrew / アンドリュー
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
awong
You probably want to use this to list out the assets from an OTL file:
houdiniAsset -listAssets $assetLibraryFilePath
And use this to instantiate the asset:
houdiniAsset -loadAsset $assetLibraryFilePath $asset

Note that the $asset needs to be the fully qualified asset name. The listAsset flag will return these names if you're unsure. For example:
houdiniAsset -loadAsset “/path/to/SideFX__compactcar.otl” “SideFX::Object/compactcar”


I was looking for this , Thanks awong
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
Yeah andrew! Thank you
-G
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
BT Wwould it be possible to add to houdiniAsset a -name flag to be able to specify the created node name (or at least perhaps have it return the created node name)?

thank you!
-G
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
Hm, “houdiniAsset -loadAsset” should already be returning the new node name. Did you try something like:
$node = `houdiniAsset -loadAsset “/path/to/asset.otl” “Object/foo”`
Andrew / アンドリュー
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
Ah I think I know what I was doing wrong. I am using your Mel scrip instead of the command. Let me fix that

Thank you!
-G
  • Quick Links