Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Bitmap in clipBoard has no Alpha ?
  RSS 2.0 ATOM  

Bitmap in clipBoard has no Alpha ?
Rate this thread
 
25704
 
Permlink of this thread  
avatar
  • Total Posts: 31
  • Joined: 24 December 2007 11:45 AM

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

Replies: 0
avatar

anyone? any thoughts?



Purple Intelligence Technology co.,Ltd
Wuhan City, Hubei Province, P.R.China

Replies: 0
avatar

I tried for a while, still stuck here. help!



Purple Intelligence Technology co.,Ltd
Wuhan City, Hubei Province, P.R.China

Replies: 0