From the original SynthMaker forum (2004–2014), with its members’ names and dates.
McBarGig ·
Is there something that can be used that makes a little more sense than the area, view, bmpsave, bmp create prims..
In a normal language one would simply specify 0,0-100,100 and take a snap shot of that region.
What is the equivalent of doing that in SM...Is there an equivalent?
I also came across another error while bashing my head into the wall.
I tried all the code listed here to get an idea of how to do it. Then I spoke to infuzion about it and he suggested using a clip. In fact that I think is the right approach for what I want to do, but the Bitmap create seems to get into a loop of sorts and continuously creates bitmap after bitmap when placed at the top level. It needs to be at the top level because the region I am taking a snapshot of is a component of the top level mgiui.
The Bitmap create seems to function properly at a lower view level, but as soon as I place it at the top, it starts its shenanigans..
oddson ·
Some primitives use grid units and others (bitmap ones primarily) use pixels. This can lead to problems.
I'm not sure what you mean by the rest of this ("code listed" where?).
Not that you should have to bury a primitive to get it to work right but there's no reason you can't feed one data from a higher level.
Do I understand that you want to save a bitmap of what your MGUI is viewing?
If it makes you feel any better about your confusion it takes me ages to relearn S|Ms graphics system every time I go to to something.
oddson ·
Check this OSM out and let me know if I'm getting close.
The file save is incomplete but hopefully you can make it work from here if I'm in the ballpark of what you're looking for.
McBarGig ·
Hey Oddson, thanks man, and sorry for taking so long to get back to you, normally I can answer right away but have not had the opportunity.
I am pretty sure I can work with that, basically all I feed it is the two floats. Essentially what I want to do is be able to turn certain laters off, leaving only knobs, etc., then take a screen shot of that. This is so that when people design their background graphics they can have a screen shot is just the knobs and their positions. They can use the power of a graphics program.
So, the larger image represents what, my very top layer(view). If thats the case then the modual where I input the floats would have to be one layer up from that?
oddson ·
Hey... I didn't think it would be the end solution you're looking for but that it might show you how the clip primitive works (and that you may need to use the translate primitive to shift the clipped image up and over so that part you've clipped out isn't showing).
In all honesty I've read this post a few times and all I'm sure of is that I don't understand what you're after. 😕
McBarGig ·
Check your PM...🙂
Wrote something here? To have a post removed or your name hidden, write to [email protected].