new beta-stealth mode
 1-11  12-28

Previous
Next
 From:  Michael Gibson
2703.12 In reply to 2703.11 
Hi Danny, put this on a shortcut key to try:

code:
script: /* Show length of current curve being drawn */ try { moi.ui.commandUI.setInterval( 'var crvs = moi.geometryDatabase.getObjects().getCurves(); var len = 0.0; if ( crvs.length > 0 ) { len = crvs.item(crvs.length-1).getLength(); } if ( !window["_crvdistlabel"] ) { document.body.insertAdjacentHTML( "beforeEnd", "<div id=_crvdistlabel></div>" ); } _crvdistlabel.innerText = len.toFixed(4);', 250 ); } catch(e) {}


(EDIT: updated code to remove HTML escaping)


What that will do is start a timer and continuously display the
length of the curve that you are currently drawing in the bottom
of the command options area (below the Cancel button in the
upper-right area of the main MoI window).

Because it is on a timer, it will continue to dynamically update
after you have triggered it. It will go away automatically when
the command ends.


That can be triggered for any curve command, like freeform
curve, rectangle, arc, circle, ellipse, helix, etc... for example
if you trigger it while in the circle command it will display the
perimeter of the circle there.

I think the only command it will not work fully with is Polyline, it
will unfortunately only get the length of the last line segment of
the polyline due to the way the Polyline command works (as you
draw a polyline, there are actually 2 temporary curves created
while you are drawing, so that you can snap to previous midpoints
or perpendiculars on the same polyline you are drawing). It would
take some more work to make it work right there.

Is that the kind of thing you were thinking of?

- Michael

EDITED: 21 Jun 2009 by MICHAEL GIBSON

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
2703.13 In reply to 2703.12 
Hi Michael. I wanted to try this and got this:



Could it be because the copy from the forum has the script seperated on lines??? I think I got it all on one line but may have deleted a needed "Space"??

I get the word "blah" in the label space.

EDITED: 19 Jun 2012 by BURRMAN

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2703.14 In reply to 2703.13 
Hi Burr, yeah possibly something not right with multiple lines.

Please give this one a try:
code:
script: /* Show length of current curve being drawn */ try { moi.ui.commandUI.setInterval( 'var crvs = moi.geometryDatabase.getObjects().getCurves(); var len = 0.0; if ( crvs.length > 0 ) { len = crvs.item(crvs.length-1).getLength(); } if ( !window["_crvdistlabel"] ) { document.body.insertAdjacentHTML( "beforeEnd", "<div id=_crvdistlabel></div>" ); } _crvdistlabel.innerText = len.toFixed(4);', 250 ); } catch(e) {}


Depending on your web browser, you can probably double or triple-click
the above single line to get it all as a single line easily.

Does that work better?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
2703.15 In reply to 2703.14 
Thats it! Thanks. I dont understand it well enough to pick what was off.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
2703.16 In reply to 2703.15 
And now, to make it a "full blown tool"....Click the label and enter a value!!!?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2703.17 In reply to 2703.16 
Hi Burr,

> And now, to make it a "full blown tool"....Click the label and enter a value!!!?

Not much hope for that one to be done dynamically while running inside of a drawing command, since it would involve trying to modify each command's inputs and they all have numbers or types of inputs.

But I guess it would be possible to make a different command that you could apply to a curve after you have created it though, to scale it to a target length.

- Michael

EDITED: 21 Jun 2009 by MICHAEL GIBSON

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2703.18 In reply to 2703.15 
Hi Burr,

> Thats it! Thanks. I dont understand it well enough to pick what was off.

I see what happened with my other post now - there was a bit of HTML mixed in there, which the forum converted into text formatting. So one piece of the code that had: <div> in it was missing.

Anyway, it doesn't look like I'm going to have the new beta release notes finished up tonight, sometime tomorrow for that.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
2703.19 In reply to 2703.17 
Good luck on the release notes. Sorry to keep you up on other topics!

Having the "length" thing could handle the area of "unfolding" without the need for a toolset specific to that. This is the reason I'm interested in it. Would like to here why Danny is interested or what other benefits there are to this.

But as always, I'll grab the command if it becomes available!

Thanks again. It's all good for me.

BTW: My vote is to stay as a "one man band".
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael T. (MICTU_UTCIM)
2703.20 
So, where is the new beta?

Michael T.
Michael Tuttle a.k.a. mictu http://www.coroflot.com/fish317537
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2703.21 In reply to 2703.20 
Hi Michael T.

> So, where is the new beta?

You can get it from here: http://moi3d.com/beta.htm

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael T. (MICTU_UTCIM)
2703.22 In reply to 2703.21 
Thanks Michael G., I'll have to download it when I get home!

Thanks.

Michael T.
Michael Tuttle a.k.a. mictu http://www.coroflot.com/fish317537
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  DannyT (DANTAS)
2703.23 In reply to 2703.12 
Hi Michael,

Sorry for the late reply.

> Is that the kind of thing you were thinking of ?

That is great! curve length tracking.
The first script you posted which copies the result to the clipboard was what I was after in a round about way, I will use it.
I use it for, when modeling and I want to reference another length and paste the value in the command I'm in.
So say I'm extruding a closed curve and realise I want the relationship of the height to reference an edge length of another solid,
at the moment I have to get out of the extrude command, measure my reference edge, copy, then execute the extrude command again.

My apologies on delaying you on the release notes :S

Cheers
~Danny~
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2703.24 In reply to 2703.23 
Hmmm, it seems that there is a regression bug in the new beta where there can be a crash in object snaps in a case where there are a bunch of different snaps stacked on top of one another.

It's not necessarily that easy to run into it, but I guess I'll take advantage of having been in "stealth release mode" for the past couple of days here, and go ahead and roll out a new version with the fix in it.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  DannyT (DANTAS)
2703.25 In reply to 2703.24 
Shhh :)
~Danny~
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2703.26 In reply to 2703.25 
Don't tell anyone, but the new 6/23 beta should be up now...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
2703.27 In reply to 2703.26 
Effectively :)
http://moi3d.com/beta.htm
So the 20 jun was in life only 3 days :)
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
2703.28 In reply to 2703.27 
Hi Pilou, also the new one has the "Opposite" setting for the browser as well.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-11  12-28