|
Hi, everybody
I’m now trying to develop a script to put the rendered bitmap into clipboard, so I can easily paste it into photoshop as a new layer.
But hard as I tried, when I pressed Ctrl + V in photoshop , the newlayer will be a solid square, without any transparency. But when I place
the PNG file created at the same time, it turns out OK.
Is there anyway to put a bitmap with transparency in clipboard and make it work in photoshop?
These codes will give you the idea:
struct render_struct
(
obj,
outPutPath = "c:/",
fn apply =
(
holdMaxFile()
hide objects
unhide obj
backGroundColor = black
theMap = bitmap renderWidth renderHeight fileName:(outputPath + obj.name + "_bp.png")
render vfb:off to:theMap
fetchMaxFile quiet:on
if queryBox "put it into clipboard"
then
(
setClipBoardBitmap theMap
)
save theMap quiet:on
)
)
global currentRender = render_struct()
currentRender.apply()
Purple Intelligence Technology co.,Ltd
Wuhan City, Hubei Province, P.R.China
|
|
|
|
anyone? any thoughts?
Purple Intelligence Technology co.,Ltd
Wuhan City, Hubei Province, P.R.China
|
|
|
|
I tried for a while, still stuck here. help!
Purple Intelligence Technology co.,Ltd
Wuhan City, Hubei Province, P.R.China
|
|
|