Change Asset Presets Using Python

   576   3   1
User Avatar
Member
11 posts
Joined: Jan. 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 - July 17, 2017 16:54:16
User Avatar
Member
1424 posts
Joined: Sept. 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: April 2011
Offline
… and if it's in hscript - you can call it in python with
hou.hscript("hscript_here")
User Avatar
Member
11 posts
Joined: Jan. 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