chromoly ruler

hello
could somebody wright a script as Chromoly’s Ruler used to be for blender 2.5 ?

for those who don’t know , Ruler, was an addon that would allow quickly calculate distances with a virtual ruler that would appear on the screen.

any change that addon would be resurrected ?

I was asking the same to other but looks like the scrip is to big and complex

I got some of it working, maybe I could take another look & upload progress…

hoooo meta-Androcto youre the man this ruler tools is really usefull

I will add my own request here also. I loved that script I still have the 2.59 version with it included on this computer JUST FOR THAT SCRIPT. I would love to have this be a standard addon so I could just put it into 2.63 and get rid of the extra version.

Yes, I am also an other admirer of Chromoly scripts and I have not managed to convince him to update his scripts, he was very disappointed with the decisions of the Blender Foundation. Since no new…

so your in contact with Chromoly?
do you have an email address for him?

:yes: Meta-Androcto, contact him by his youtube-chain:
http://www.youtube.com/user/chromolytube
My last mail was in 16 mai 2011!!!

Good luck!
Thanks for your help for his scripts.:cool:
Spirou4D

Edit: “I heard somewhere that chromoly is a japanese guy, who cant speak english very well.
Perhaps the freestyle developer T.K could communicate with this guy. he is also japanese.
” said Tungee here on this forum in 24-Nov-10 16:55!

Spirou, what decisions?

When Blender is changed between 259 and 260 but I have a few forgotten now. The structure of Blender had changed and Chromoly had to change all his scripts…

I had contact with him because I know Japan and his culture, I traveled to Japan…

well it looks as though I will just keep that build on my computer and zipped up just in case.

Shaba1,
good idea.
I don’t see much hope in resurrecting this addon in the foreseeable future.

current status:
I’ve done a few things.
1/ Grouped the addon & modules in one folder structure “chromoly_ruler/modules”
2/ Commented out some old theme code which had broken the addon even more…
3/ This got it working as far as it will enable.
4/ ui is visible but unusable. add modal handler button crashes blender (instant death)
5/ Uploaded current progress here:
WARNING. This Does Not Work & will Absolutely Kill/Crash/Stop Blender from functioning.
Chromoly_Ruler

I can do no more with this, other better coders may have more luck.

so be warned, don’t bother trying it unless your a serious coder.
I feel it may be better, when you look at the work involved, to rewrite a new version from scratch.

thanks for the effort, @Meta-Androcto
hope somebody will resurrect this script (addon) after all.

I have done some Japanes2french translation of all comments.
I hope to help a french coder to improve this so nice script!
Chromoly_ruler_frcomments

Byby
Spirou4D

ps: I’m coder but no longer in python with Blender and this script is very hard!

Spiro4D,
it looks like your clever ploy worked :wink:
Watch out for news really soon :slight_smile:
Awesome, still some bugs but it’s working in 2.63.
http://www.pasteall.org/pic/show.php?id=33390

Yes anda yeah EWOCprojects rules, ahem with a ruler this time:

WORK IN PROGRESS

80-90% working - chromolys ruler for 2.63

looking for people experienced with the old version to test the new!

fast download : this zip file

OMG!!! Thanks !

palajed pressing the modal_handeler_add() button give a pop up error in blender that is unreadable.

This is what the system console says.

found bundled python: C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\pytho
Ruler display callback added
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2793, in modal
id = get_active_region_id(event)
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2170, in get_active_region_id
if region.xmin <= mouseco[0] <= region.xmax and
AttributeError: ‘Region’ object has no attribute ‘xmin’
location:<unknown location>:-1
location:<unknown location>:-1
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’
Traceback (most recent call last):
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 2348, in draw_callback_px
draw_scale_type(data, config) # Affichage dans le coin supérieur droit
File “C:\Users\DD\Desktop\Blender Files\Blender263a\2.63\scripts\addons\chro
ly_ruler_init_.py”, line 1187, in draw_scale_type
glColor4f(*config.color_background)
AttributeError: ‘RulerConfig’ object has no attribute ‘color_background’

after you press that button and then press the enable button the ruler appears on any 3d window.

Pressing the cursor on button seems not to do anything
pressing and holding CTRL-SHIFT_R and then the cursor on button will sometimes lock the cursor until you let up on those keys at other times blender just crashes.

i had to shorten the previous post becaue the errors from the console were too much for the forum software to handle. I hope that you get a good idea of what I mean from that post.

SHABA1 : you probably have a conflicting old version that youre using - these errors were the ones I had when In first started updating this script

or maybe my upload was wrong?

Anyhow, new version online, this time definitely the correct one : DOWNLOAD

No more modal_handlers, now just a big Enable button to start, changes in Disable button to stop.
Now it really stops… this means you return to full Blender functionality.
No more crashes on disabling.

By the way : I took out the Cursor On/Off buttons… did anyone really use these?