PDA

View Full Version : RestoreSymmetry ZScript, Rev A


davey
09-03-02, 09:10 PM
This ZScript is designed to adjust the radius,X, Y and Z mirror symmetry to a ZSphere model which is no longer symmetrical.

Non-symmetry can be a result of editing a 3D object with symmetry modifiers turned off or it can occur after long sculpting sessions, where minor differences in calculated positions accumulate, and ZSpheres on opposite sides of an X, Y or Z axis go out of alignment by a fraction of a pixel.

RestoreSymmetry, Revision A.zip (http://www2.zbrushcentral.com/zbc_uploads/user_file-1031117380uzb.zip)

Note: This ZScript doesn't work on models created with radial symmetry.

Minor differences can occur because ZSphere positions are re-calculated every time you move, rotate or resize them.

To illustrate how this can happen: take a standard calculator, and divide 1 by 3. The result is 0.3333333, but this is slightly incorrect -- it should be .3333333333... (with repeating threes forever).

Divide by 2 and you get 0.1666666 -- this is still slightly incorrect. Multiply by 6, and you'd expect to get 1 again, but instead you get 0.9999996 -- now it's even further off.

The more the position values are calculated, the more these tiny differences can accumulate.

This ZScript examines all the position values of the ZSpheres and makes them match correctly again.

Hope this helps,
dave

09-03-02, 09:45 PM
thats exzactley what i was going to say. :D
i got it saved ;)

Digits
09-03-02, 09:53 PM
Hmmm, it says

[Note,"This ZSpheres object was created in older version of ZBrush and it does not contain the necessary information for proper symmetry adjustments."]

I am a little confused! hehe Is there version 1.6 out there somewhere?


Would you mind if I incorporate this script into my Zsphere Widget? With full credit of course :)

juandel
09-03-02, 09:54 PM
won-der-ful :tu: :tu: :tu: :tu: :tu:

- juandel

edit: no trouble like Digits reported on my mac with this script - wowzie, great job, davey!!!

09-03-02, 09:59 PM
digit i think it was 1.5 then went to 1.5.1

Digits
09-03-02, 10:08 PM
The problem seems to be with models that I have generated with my zsphere script. They have no Timestamp information. Models done the old fashioned way :) are fine

09-03-02, 10:13 PM
try downloading one of the Z Sphere tools that have been posted and see if you get the same error

wenna
09-04-02, 06:11 AM
Great script davey!!! works great for me! :tu: :D

Grub
09-04-02, 03:48 PM
Thanks for the script Davey, you're a star! :tu: :tu: :tu:

Mr Z
09-04-02, 04:26 PM
Thanks a million Davey, you guys are soo fast when it comes to technical support + extra's :D

- Shane

SkullCowboy
09-13-02, 04:19 PM
Man, that is a sorely needed tool...
just brilliant.
Thanks.

Fouad B.
10-07-02, 02:09 PM
arfff excellent !!!! exactly what I need !!! thx a lot!! :tu:

jk
05-21-04, 07:28 PM
Very nice Davey, thanks.

drmapl
05-21-04, 07:59 PM
Many thanks, Davey. Just yesterday I was in need of such a tool. It works great on my Mac.

Cheers

ashaiad
07-22-04, 01:18 PM
i tried using that script on Z2 and i clciked on the zsphere thats not symetry anymore and yet i get Zsphere dosnt contain symetry information

what im i doing worng
thanks http://www2.zbrushcentral.com/uploaded_from_zbc/200407/user_image-1090527500wub.jpg

aminuts
07-23-04, 02:03 AM
If you are using Z2 why not use its resym or smart resym options? They are located I believe in the tools menu under deformations...I don't have it in front of me at the moment but am pretty sure thats where its at.

ryankingslien
01-11-05, 10:12 PM
aminuts - I may be nuts but resym or smart resym doesn't work for me at all.


the script works killer, though!

ashaiad - i got that once to but i just moved the sphere again and tried the button and all was fine. You might also try increasing the axis tolerance.

r

kelvin273
04-17-08, 03:40 AM
Hello

Since the ZBrush3 has come out this handy script doesn't work properly on ZSpheremodels anymore. Also ReSym and SmartReSym have no effect on ZSpheres and so at the moment there is just no way to fix an unsymmetrical ZSpheremodel.
Maybe it is possible this helpful script to be modifierd in a way that it also works for ZSpheremodels that were modeled inside ZB3 or ZB3.1?
Unfortunately I'm not experienced in codewriting at all. Please can someone help me and rewrite this script so it also runs in ZB3.1?

Thanks in advance
greetings
kel

marcus_civis
04-17-08, 04:01 AM
I'm afraid that currently scripting for zspheres is problematic in ZBrush 3.1 so this script can't be updated just now.