[Sidefx-houdini-list] Changing paths from mantra -P at render time

Sandy Sutherland sandy.maillists at gmail.com
Thu Apr 12 12:50:41 EDT 2018


OK - moving on, turns out it seems to be a bug with Houdini 16.0.721 -
testing the same thing in Houdini 16.5.405 and it does work.

Thanks

S.

On 12 April 2018 at 16:37, Matthew Kearney <shadow.matte at gmail.com> wrote:

> Hey Sandy!
>
> Might just be a typo but you appear to have some quotes missing (see red
> text):
>
> mantra.setproperty(plane:planefile, newpath.split())
>
> Matt.
>
> On 12 April 2018 at 17:34, Sandy Sutherland <sandy.maillists at gmail.com>
> wrote:
>
> > Hi All,
> >
> > We are in progress with a complete revamp of the publishing and
> versioning
> > toolset here.
> >
> > One thing I am investigating is switching paths at render time, so as to
> > publish.
> >
> > Right now mantra -P using the below snippet works, but when I try the
> same
> > with aovs, it is doing strange things, and is actually breaking the
> python
> > script I create - actually messes it up.
> >
> > Change Image path -
> >
> > def filterPlane():
> >     currpath = mantra.property('image:filename')[0]
> >     # Do new path stuff
> >     mantra.setproperty('image:filename', newpath.split())
> >
> >
> > If I use -
> >     currpath = mantra.property('plane:planefile')[0]
> >     # Do new path stuff
> >     mantra.setproperty(plane:planefile, newpath.split())
> >
> > Everything goes haywire.
> >
> > Any suggestions?
> >
> > Thanks
> >
> > Sandy
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
>
>
>
> --
>
> *MATT KEARNEY*
> "*Reality is merely an illusion, albeit a persistent one.*" - Albert
> Einstein.
> _______________________________________________
> 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