sprites in columns, not in rows

Hello all,

I found this script created by Geoffrey Samuel, that makes a sprite sheet from an animation in 3ds max, the good point of the script is that can save a picture with all the frames of all the cameras, but I need to have the sprites in columns not in rows. I contacted the author but he didn't answer, so I tried by myself with no result.

Thanks

AttachmentSize
sprite_renderer.ms11.46 KB

Comments

Comment viewing options

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

Not very clevar to use

Not very clevar to use setPixels function for that purpose. All you need is pasteBitmap. An example on how to use it, you can see in my Sprite Buffer script. It make horizontal sprite, but once you catch the idea you'll modify it to build vertical sprite. And just in case, here is an example to get started:

( -- Example vertical sprite buffer
	bmArr = #(
		(bitmap 220 100 color:red),
		(bitmap 220 100 color:yellow),
		(bitmap 220 100 color:blue)
	)
 
	buffer = bitmap 220 (100*3)
	for i = 1 to bmArr.count do
		pasteBitmap bmArr[i] buffer (box2 0 0 220 100) [0,100*(i-1)]
	display buffer
)

Cheers!

my recent MAXScripts RSS (archive here)

Comment viewing options

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