lisux Posted January 15, 2007 Share Posted January 15, 2007 Hi everybody. I am creating an HDA to bake attributes using the mantra -u option. My HDA only have a Mantra ROP, is only a wrapper for a Mantra render, but any time I try to render I get the same error: mantra: Unable to find object '/obj/model' The mantra command line I am using is: mantra -b Float -V 1 -u "`chs("../obj")`" Here I reference to tha obj parameter of the HDA. It seems that there is no problem with the command line expression because ir returns exactle the path I want, and this path, /obj/model, is correct, even more if I render usinga regular Mantra ROP and in the command line I type: mantra -u /obj/model It work perfectly. So why when I use render using a Mantra ROP embebed into a HDA it fails? Somebody have suffered similar problems? Thanks. Quote Link to comment Share on other sites More sharing options...
SpencerL Posted January 15, 2007 Share Posted January 15, 2007 Hey, I ran into this problem before and I think you are having the same issue as I did. You need a full path to your geo. It doesnt seem to like relative paths, so if you use opfullpath(), it should fix that problem. mantra -u `opfullpath("../model")` Quote Link to comment Share on other sites More sharing options...
lisux Posted January 15, 2007 Author Share Posted January 15, 2007 Hey, I ran into this problem before and I think you are having the same issue as I did. You need a full path to your geo. It doesnt seem to like relative paths, so if you use opfullpath(), it should fix that problem. mantra -u `opfullpath("../model")` Thanks SpenderL, but it seems that this is not the problem. I am using absolute path always, anyway I have changed the command line expression with this: mantra -b Float -V 1 -u `opfullpath(chs("../obj"))` But still the same error. It seems like the mantra -u doesn't like to work into a HDA. Quote Link to comment Share on other sites More sharing options...
SpencerL Posted January 15, 2007 Share Posted January 15, 2007 hanks SpenderL, but it seems that this is not the problem.I am using absolute path always, anyway I have changed the command line expression with this: CODE mantra -b Float -V 1 -u `opfullpath(chs("../obj"))` But still the same error. It seems like the mantra -u doesn't like to work into a HDA hmm...not sure why its not working. I created an HDA that bakes ambient occlusion that uses the exact syntax mantra -u `opfullpath("../model")` ...and it works fine. Im at work now, so I will have to wait until I get home this evening, but once I do Ill upload my HDA to the exchange and you can take a look at it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.