grayOlorin
Sept. 18, 2014 10:17:49
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!
awong
Sept. 19, 2014 12:08:00
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”
Sadjad Rabiee
Sept. 21, 2014 03:57:55
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
grayOlorin
Sept. 21, 2014 10:20:46
Yeah andrew! Thank you
grayOlorin
Sept. 24, 2014 01:10:48
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!
awong
Sept. 24, 2014 12:01:04
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”`
grayOlorin
Sept. 24, 2014 15:26:06
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!