This script will fill and resize the document to the dimensions of the currently selected texture. It will put this on a new layer and use the current material.
Remember, this will resize the doc so don’t run it if you have important data on other layers.
Lastly, do any Zscripters out there know how to have the script exit if you select ‘no’ to the automatic resize question? I know you can use the Message command separately, but I’d rather not have to answer the requester twice.
Special Thanks to Digits and cameyo for their help!
Hope you find it useful!