Just as a follow up. Maya does this on the background when you activate
image sequences:


import maya.app.general.fileTexturePathResolver
maya.app.general.fileTexturePathResolver.getFilePatternString('C:/texture.0001.iff',
True, 0)
# Result: 'C:/texture.<f>.iff'

But it doesn't tell you what it does, because if you set that using setAttr
, it will fail in Arnold. But if you let maya do it, it will work. Maya is
doing something else after getting that, but echoing all commands will
return nothing after that call.

So after that, maya is doing some magic I don't know about...




--
Lidia

2016-09-20 15:10 GMT+02:00 Lidia Martinez <darksideg...@gmail.com>:

>
> I need to modify the path set for an image sequence on a texture file.
> First, when I try to get the path using getAttr, instead of having the
> same string in the field:
>
> path_to_files_<f>.iff
>
> I get the first file of the sequence instead:
>
> path_to_files_0001.iff
>
> I suppose this is a bug in Maya?...
>
>
> This was set by the people working on the textures, and they didn't know
> doing it automatically would not generate a #### pattern, but that <f>.
>
>
> So, after modifying that path, I need to generate the right path ending
> again, replacing that number for <f> or ####.
>
>
> If I change to ####, Arnold (which is the plugin that will eventually uses
> it), doesn't get the texture that used to work. Weird, because if you
> change it by hand on Maya, it works.
>
> If I set <f> , Arnold returns "unknown token <f>" error.
>
>
> This is not an Arnold problem. The thing is that changing that using code
> breaks the path somehow.
>
>
>
> Any ideas?
>
> Thanks
>
>
> --
> Lidia
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAAB1%3D8wiAYuBD_C7iUM_gBWYQ0-RWEcDL2VLMyALywn2V9b3NQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to