Jump to content
txrx

-P Python Filtering image:filename set property problem.

Recommended Posts

Hi there,

I'm using -P to run a python script to over ride the IFD's params for the image crop values to allow me to render out tiles for assembly once they're all done but when I use the below code regarding amending the file name...

def filterCamera():

< get tile number >
< set crop image values >
etc.



 OriginalName = mantra.property('image:filename')[0]
 TileNameData = "0.0_0.25_0.5_0.75"
 TileFileName = os.path.splitext(OriginalName)[0]+"_"+TileNameData+os.path.splitext(OriginalName)[1]
 mantra.setproperty('image:filename',TileFileName)

It still saves the output image with the original file name to disk from the IFD

Am I making this change at the right place or using the wrong def for python filtering? Must admit I'm pretty new to Houdini so there's every possiblity I've got it wrong here ;)

Using build 10463 on win64 machines (yea, I know windows etc but there you go)

Edited by txrx

Share this post


Link to post
Share on other sites

Hi there,

I'm using -P to run a python script to over ride the IFD's params for the image crop values to allow me to render out tiles for assembly once they're all done but when I use the below code regarding amending the file name...

def filterCamera():

< get tile number >
< set crop image values >
etc.



 OriginalName = mantra.property('image:filename')[0]
 TileNameData = "0.0_0.25_0.5_0.75"
 TileFileName = os.path.splitext(OriginalName)[0]+"_"+TileNameData+os.path.splitext(OriginalName)[1]
 mantra.setproperty('image:filename',TileFileName)

It still saves the output image with the original file name to disk from the IFD

Am I making this change at the right place or using the wrong def for python filtering? Must admit I'm pretty new to Houdini so there's every possiblity I've got it wrong here ;)

Using build 10463 on win64 machines (yea, I know windows etc but there you go)

http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=83286#83286

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×