Jump to content

Creating A Rop Hda Problem


lisux

Recommended Posts

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.

Link to comment
Share on other sites

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")`

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...