Page 1 of 1

How to set the pivot point of rotating a graphic Line

Posted: Thu Apr 17, 2008 2:18 pm
by alex298
Hi,

I use the following code to rotate a graphic, e.g.

RevRotatePoly the name of graphic "Rod", 45

Graphic "Rod" is actually a Line with Width 300 and Border Size 7. I noticed that the pivot point is at the left side. Is it possible to use some syntax that allow to set or control the pivot point of rotation?

Thanks and best regards

Posted: Thu Apr 17, 2008 5:00 pm
by Mark
Hi Alex,

Not that I know of, but the following might help:

Code: Select all

lock screen
put the loc of grc "Rod" into myOldLoc
RevRotatePoly the name of graphic "Rod", 45 
set the loc of grc "Rod" to myOldLoc
unlock screen
Instead of the loc, you might also use the topleft, bottomright, etc.

Best,

Mark

Posted: Thu Apr 17, 2008 6:42 pm
by Garrett
Speaking of graphics/drawing in Rev. I'm only now kind of getting back into programming again and only recently(after years of toying with Rev) used the drawing tools in Rev.

I was so glad to see that antialias was available!!! I've avoided so many projects for so long because not one of the programming languages I have could offer antialias in it's drawing graphics.

Might have reopened a new world for me here, now if I could just remember at least one of the projects I had in mind oh so many years ago.

Great!, thanks Rev, now I'm gonna get a headache trying to remember some ancient project I wanted to do! :p

Seriously though, Thanks Rev for going the extra distance and having antialias support for the drawing graphics. :-)

~Garrett