BenJackson wrote:
Hah! I specifically commented those out just before I pushed to github because they have nothing to do with my rastering code. If you literally used File|Open and selected an image (using the FILTER) then what you got was a program generated milling script. I guess it works because of the magic-z? Was the motion smooth?
bill.french wrote:I didn't have to uncomment that section to get it to work.
Also, concerning x vs. y -- why would you want it to be y? Isn't x always the faster axis?
TLHarrell wrote:Having a small machine at the moment, having the ability to determine the raster axis would be cool to me. I've had several projects where I wanted to raster something along the other axis, for sake of how it looks when done, but couldn't due to the constraints of my work envelope. Not necessary, and adds unneeded complexity, but would be a nice feature.
BenJackson wrote:I tried to make [RASTER]AXIS set the engraving axis but there are some issues that make it difficult. The M144 script looks at that setting but the HAL doesn't. The HAL needs "xpos" changed to "ypos" in the raster section. For O145 I'd just copy it to O146 and flip X/Y.
If you want to be able to do either at runtime it would require more complex code in the HAL.
BenJackson wrote:The HAL change looks ok. M144 looks at [RASTER]AXIS (add that to the INI) so you could set that to 1, but I don't think it rotates the image. By the time I realized I couldn't make it all track [RASTER]AXIS I dropped it.
Modelart wrote:AXIS = 1
an error apears (too late at night to find why)
Modelart wrote:The only minor drawback is that the image is flipped (EDIT: mirrored) around x axis.
BenJackson wrote:Modelart wrote:AXIS = 1
an error apears (too late at night to find why)
Needs axis=int(axis) because the config is a string. Never tested that.
Modelart wrote:BenJackson wrote:The only minor drawback is that the image is flipped (EDIT: mirrored) around x axis.
Look for image.resize in M144 and see this Python document for things you can do. You probably need some kind of image.transpose() to flip it the right way.
Users browsing this forum: No registered users and 39 guests