Change Asset Presets Using Python

   4234   3   1
User Avatar
Member
14 posts
Joined: 1月 2014
Offline
Hi,

Is it possible to change the loaded/set asset preset in a programmatic way using python for example?
These are the presets defined in the IDX file. The reason for this is to enable some form of batching.

Thanks,
R.
Edited by skara - 2017年7月17日 16:54:16
User Avatar
Member
8043 posts
Joined: 9月 2011
Offline
I don't think they ever made it into python, but there are hscript commands.

http://www.sidefx.com/docs/houdini/commands/oppresetload [www.sidefx.com]
http://www.sidefx.com/docs/houdini/commands/oppresetsave [www.sidefx.com]
http://www.sidefx.com/docs/houdini/commands/oppresetls [www.sidefx.com]
User Avatar
Member
79 posts
Joined: 4月 2011
Offline
… and if it's in hscript - you can call it in python with
hou.hscript("hscript_here")
User Avatar
Member
14 posts
Joined: 1月 2014
Offline
Hi,

I neglected to thank you guys for that information which allowed me to do the batching in an asset. So thank you

Thanks,

Robert.
  • Quick Links