Reassign Textures via Python in Motionbuilder


#1

Hey everybody,

I’m trying to reassign textures in Motionbuilder using a Python script, and have run into some problems.

The Model uses a Texture that uses a FBVideoClipImage object. the “Filename” property of that image object doesn’t seem to do anything as far as I can tell (it holds the correct Filename Path for the texture being used, but reassigning it a new path doesn’t appear do anything).

Any help you can give would be great. Thanks everybody.

-Dan


#2

I just tested and it works on my end. Assigning a new string path to FBVideoClipImage.Filename displays a new texture. Are you sure it’s not other settings that wouldn’t be causing the texture not to show on your model?

Have you checked the StorageMode of the VideoClipImage?


#3

Thanks Claudio. I was able to get it working. I think that I was incorrectly constructing the new file path, which is why it didn’t appear to be working.