Modify this great Bitmap Fit script for implementing VrayBitmap

Hi,

i found this little helpful script somewhere on the web which generates a UVW Modifier with correct image aspect ratio for every bitmap of the assigned material. This is super helpful, unfortunately it doesnt work with the VrayBitmap map in Vray 5.
Can anyone pls add the needed code for including them ....that would be great !!
Attached is the original script

Thanks

Robin

AttachmentSize
bitmap_fit.ms457 bytes

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
obaida's picture

This modification add

This modification add VrayBitmap and CoronaBitmap Support .

AttachmentSize
bitmap_fit_m.ms 1.23 KB
robox's picture

-

-

barigazy's picture

...

Script works fine but there is one problem.
What if you have bitmaps in different slots which have also different aspect ratios?

barigazy

robox's picture

-

-

robox's picture

Hi Obaida, thanks for your

Hi Obaida,

thanks for your modified version of the script. Unfortunately it still doesn`t recognize VrayBitmap. I tested it on Max2021. Did you got it running ?

Best

Robin

obaida's picture

Select Objects

it will work on Selected Objects only .
AND as barigazy said , the script should give a list of bitmaps on the object material so you can pick the map you want to get
or get the first bitmap only , or you'll have uvwmap modifier for each bitmap in the material !!.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.