Page 1 of 1

using $OS in a rop confilicts with unexpandedString() method in afanasy.py

Posted: Thu Jan 26, 2017 5:30 pm
by keyframe
Heya Timur,

We use $OS.$F4.exr for vm_picture and $OS.$F4.ifd for soho_diskfile by convention. This allows us to name and version the images and ifds by simply renaming the rop.

However, in afanasy.py (version 2.2, line 504) you are setting:

Code: Select all

        if read_rop:
            images = ropnode.parm('vm_picture')
            files = ropnode.parm('soho_diskfile')
            afnode.parm('sep_images').set(images.unexpandedString())
            afnode.parm('sep_files').set(files.unexpandedString())
In our case, unexpandedStrings() returns $OS.$F4.exr (as expected), however, when it's actually evaluated, it returns the name of the afanasy rop, and not the mantra rop in question.

This results in ifd files and renders all being named (typically) afanasy1.$F4.ifd and afanasy1.$F4.exr respectively.

Thoughts? I'm hoping there is a handy workaround, without having to branch your afanasy.py file.

Best,

G

Re: using $OS in a rop confilicts with unexpandedString() method in afanasy.py

Posted: Thu Jan 26, 2017 9:12 pm
by timurhai

Re: using $OS in a rop confilicts with unexpandedString() method in afanasy.py

Posted: Thu Jan 26, 2017 9:36 pm
by timurhai

Re: using $OS in a rop confilicts with unexpandedString() method in afanasy.py

Posted: Thu Jan 26, 2017 10:12 pm
by keyframe
This is a great solve. Thanks. I'll update the local file from the repo!

G