ZBrushCentral

how to rotate alpha image in custom angles

there are FLH FLV and ROT, can we set the image of alpha to an angle like 15 or 30 degrees, etc.

TIA.
-pop

Ok this might not be the shortest way …

Draw a black plane with flat color on the canvas. Go in edit mode , drop it with texturemaster , Select single layer brush and draw rectangle stroke. Draw the wanted alpha on the plane in white color and pick with texturemaster.
Now select rotate and rotate the plane , ofcource the alpha on it will rotate with it.
Select the MRZRGB grabber and grap the canvas if the alpha is on the right angle.
Go to the texture panel and select the correct texture , use makealpha there…

After writing this I realized there MUST be a shorter way :^p

i ws expecting a zsc to handle the dirty job :stuck_out_tongue:

anyway, thx for the input although not likely working this way :confused:

hi uzer
Another solution
I have made a little tut for this sort of thing :slight_smile:
on the bottom page :slight_smile:
have happy Zbrushing :cool:
Pilou

Your wish is granted. :slight_smile:

Here is a script to rotate the currently selected alpha to any angle between 0 and 360 degrees.

When the script finishes, the currently selected alpha will be the new rotation, your material and tool will be left exactly as they were before you ran the script, and the canvas will remain unchanged.

Enjoy!

RotateAlpha.zip

If anyone would like to see the original source or to modify it for personal use, the .txt file can be downloaded here. I originally uploaded the .zsc format because it requires fewer ZBrush resources.

Bravo Aurick !
A another indispensable Zscript to inclose in native Zbrush !
Uzer is a lucky Zbrusher :smiley:
Pilou
Ps I have try it, but that seems don’t work with the Demo version !
Message “Programm failed - Action no conform”(in french :slight_smile:
All works fine till “Menu /Edit palette”
Is that normal ?

Hi Aurick,

The script keeps crashing my ZB everytime I run it :confused: I use Win XP, 512 Ram. Hopefully there is away to work around.

Enter

think this should work for ya one command [iconfig. 155] fixed it here.rotate alpha.txt

Thanks, Gary! That did indeed fix the error.

Hi Gary & Aurick
Gary you are a genius :slight_smile:
All works fine now for the demo users :cool:
Pilou
One of the most important Zscript to add !

thanks frenchy but auricks the genious,great utility!

Hi all,
the utility is very fine, but…there is a problem.
Example:
Select Alpha Brush 33 and type 15 on rotate slider.
Now press rotate
Press rotate again
Press rotate again.
You will see the alpha is clipped :angry:
The problem arise because the AutoCrop is ON when grab the canvas.
I’m working to solve this, but… i have another problem:
The IKeyPress statement don’t work with CanvasClick :angry:
Ex. [IKeyPress, SHIFT, [Canvasclick,0,0,1,1,640,480],320,240]]
Can someone explain where i’m wrong ?

Good news: the MRGBZGrabber can now grab with perfect square…Press SHIFT when you grab :+1: :+1: :+1:

cameyo

Hi Cameyo
If your trick of the Mrgbgrabber + Shift = a square selection works fine ! AND It’S WORKS FINE :sunglasses: :sunglasses: :sunglasses:
(you can press and de-press Shift during the selection)
You win the Trick of the Day :+1: :+1: :+1:
Pilou

Absolutly no problem with Brush 33 and 15° ! and Default parameters :slight_smile:
Have you take the last version of Gary ?
Just reselect the first and enter 99° :slight_smile:


The Only problem with the repetitive rotation is the deformation at the bottom of Alpha !
So you must make just one rotation with the wished ° :slight_smile:

Pilou, your problem is the same as mine…maybe English is not our native language…
Good idea and Zscript anyway.
Thank You Aurick and Gary.

cameyo

big thanks for all your input :slight_smile:
-pop

AutoCrop is turned on to keep the important part of the alpha as large as possible and minimize the black space surrounding it.

If you rotate a rotated alpha, you can get clipping – such as your experience of rotating 15 degrees and then rotating the rotated alpha 15 degrees more. However, if you select the original alpha and rotate it 30 degrees, there will be no clipping. In short, use the script on the original rather than on rotated versions of it.

excellent script, Matthew! :+1: :+1: :+1:

an add on to Nameks way: to achieve 3d-rotated alphas it isnt necessary to use texturemaster/single layer brush: alpha>make texture + apply it with flat material onto a plane which then can be rotated in 3d> mrgbz-grab at any point> texture make alpha, voila.

  • juandel

Sorry Cameyo
I have forget to read one line (clipped/cropped) :frowning:
I have always thinking that a little drawing show more than words :slight_smile:
You see : Aurick takes same advice : just one rotation with the good angle :slight_smile:
And you right : English is not my native language :smiley:
Have happy Zbrushing or Zcodding :cool:
Pilou