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

Post Reply
keyframe
Posts: 25
Joined: Sat Jan 21, 2017 9:43 pm

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

Post by keyframe » Thu Jan 26, 2017 5:30 pm

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
--
centOS 7.4, cgru 2.2.3

User avatar
timurhai
Site Admin
Posts: 356
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

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

Post by timurhai » Thu Jan 26, 2017 9:12 pm

Timur Hairulin
CGRU 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

User avatar
timurhai
Site Admin
Posts: 356
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

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

Post by timurhai » Thu Jan 26, 2017 9:36 pm

Timur Hairulin
CGRU 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

keyframe
Posts: 25
Joined: Sat Jan 21, 2017 9:43 pm

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

Post by keyframe » Thu Jan 26, 2017 10:12 pm

This is a great solve. Thanks. I'll update the local file from the repo!

G
--
centOS 7.4, cgru 2.2.3

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest