Notifications
Clear all
[Closed] maxscript rollout bitmap
Apr 08, 2017 7:02 pm
Hello,
I have an image in the same directory as the script which runs a rollout.
I want to load an image to that rollout but I don’t want to have a static img path that would be different whoever puts the script in a different place etc.
While using openfile it works with the path name being as follows: “script.ms” as long as the script.ms is in the same folder as the main script which is invoking it.
However when trying openBitMap “image.jpg” method it doesn’t recognize the path. I figured it should work in the same way as openfile worked.
openbitmap “image.jpg” –doesnt work
openfile “script.ms” –works
openBitMap @“D:\scripts\image.png” –works
Any other way to make a dynamic path for imgTag etc?
2 Replies