[Sidefx-houdini-list] status of a ROP via hscript

Tom Nixon ignivomous at gmail.com
Tue Sep 14 12:18:59 EDT 2010


Hey Mike,

You could always call the hscript from python and parse it from there.
hou.hscript('opinfo %s' % nodepath)

T

On Tue, Sep 14, 2010 at 5:14 PM, Michael K. O'Brien <mobrien at pixar.com>wrote:

> Hola~
>
> Yeah, I looked at that. Is there much in the way for string parsing in
> hscript?
>
> I can write an hdk command that will give me the information that I want, I
> guess I figured it was already out there.
>
> MO
>
> >-- On Mon, Sep 13, 2010 at 08:00:27PM -0700, Graham Thompson wrote:
> > Take a look at the opinfo command.  It gives you the same info that's
> > displayed when you MMB on a node.  You can parse the output looking
> > for the Error message and proceed accordingly.
> >
> > On Mon, Sep 13, 2010 at 7:22 PM, Michael K. O'Brien <mobrien at pixar.com>
> wrote:
> > > Hola~
> > >
> > > I'm sure I'm just being dense here. I have a *.cmd file that needs to
> render a
> > > bunch of frames in a for loop. I would like to determine if the ROP I
> rendered
> > > has errored out so I can set the return status of hbatch via quit.
> > >
> > > In Python, I can call hou.node().errors() and determine if it's a null
> string.
> > > How do I get the error status of a ROP in hscript?
> > >
> > > MO
> > >
> > > --
> > > Michael O'Brien
> FX Lead
> > > Pixar
> mobrien at pixar.com
> > > _______________________________________________
> > > Sidefx-houdini-list mailing list
> > > Sidefx-houdini-list at sidefx.com
> > > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> > >
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>
> --
> Michael O'Brien                                                       FX
> Lead
> Pixar
> mobrien at pixar.com
>
> Censorship is the mother of metaphor.
>                            -Jorges Luis Borges
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



More information about the Sidefx-houdini-list mailing list