new beta-stealth mode  1-20  21-28

Next
 From:  DannyT (DANTAS)
2703.1 
Shhhh, the new beta is out ;)

Hi Michael,

Just noticed last night (for me) you've released the new beta, thanks, it's looking great!
The tabs in the Browser are much better, it does separate each part nicely, I like the pop out on the styles tab that addresses adding and editing styles,
I guess you're going to add the same thing for Groups?

The 'Lock' is a welcomed addition and I like the way it 'greys' out the locked items, a nice way visually, to indicate which items are locked without referring to the Browser, and as for materials written to .obj......... \o/

Just one thing I couldn't assign .getLength(), has this been implemented yet ?

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.2 In reply to 2703.1 
Hi Danny,

> Shhhh, the new beta is out ;)

Uh oh, now everyone knows! ;)

Yeah, I still have not finished gathering up all the notes yet...


> I guess you're going to add the same thing for Groups?

Yup, I think so.


> Just one thing I couldn't assign .getLength(), has
> this been implemented yet ?

Yeah, it's now possible to get the length of a curve in a script.

Here's a quick and dirty version that adds up the lengths of all the selected curves and copies the result to the clipboard which you can paste into a text editor:

script:var crvs = moi.geometryDatabase.getSelectedObjects().getCurves(); var len = 0.0; for ( var i = 0; i < crvs.length; ++i ) len += crvs.item(i).getLength(); moi.copyTextToClipboard( len );

I guess I should probably set up something so that a script can more easily pop up a simple dialog with a bit of given text 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:  BurrMan
2703.3 In reply to 2703.2 
Ohhhhh! Smooth. I would vote for a dialogue. My brain may not remember it actually put it on the clipboard. The dialogue would remind me what I'm doing. There are many scripts I "May use somtime", hard to remember what each one is. I suppose I should start a better cheat sheet.

This is a nice one for me.
  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:  Brian (BWTR)
2703.4 In reply to 2703.3 
Burr

YES PLEASE!

Brian
  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.5 In reply to 2703.2 
Hi Michael,

> I guess I should probably set up something so
> that a script can more easily pop up a simple
> dialog with a bit of given text in it.

Yeah, maybe, then I was thinking that copied to clipboard might be alright (or both) but what really would be good if it was possible to execute the script mid command to get a length, same thing goes for the Custom Distance script.

---------
~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.6 In reply to 2703.5 
Hi Danny - hmmm well grabbing the distance of the thing you are drawing is quite a fair bit different, although actually I think it is feasible which is kind of amazing actually. I'll see what I can cook up here, I have an idea that may be interesting.

Running custom distance in the middle of a command is kind of a no-go with the current setup right now though, since it is not just an instant running script, it is a full fledged command of its own and currently only one command can run at at time.

- 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.7 In reply to 2703.6 
Hi Michael,

> Running custom distance in the middle of a command
> is kind of a no-go with the current setup right now
> though, since it is not just an instant running script,
> it is a full fledged command of its own and currently
> only one command can run at at time.

Can a command interrupt another command, then when finished with the second command, the first command continues, it will be for special cases of course, like Custom distance, when you want to reference measurements.

---------
~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:  BurrMan
2703.8 In reply to 2703.7 
Have you thought about having "construction lines" also have the custom distance incorporated some how?

Just thinking out loud.
  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.9 In reply to 2703.7 
Hi Danny, No currently there is not any support for "nesting" commands like that.

I would like to have some provision for that, but currently when a set of script runs as a "command", it is intended to be the only running thing.

This simplifies things by quite a bit since otherwise if nesting things was more of the default (which I did have at one point very early on) it can get pretty crazy, like if you start to draw a line and then before you pick the second point of the line, you click the circle button and launch the circle command but did not exit the line command, then you would pick a circle and when that finished suddenly be back picking the second point of the original line command again.

To avoid this kind of confusing situation with just any command getting nested like that, there is currently a restriction where only a single command can run at a time.

It just makes for much more predictable operation to have it work like that.

I would like to have a way for a command to optionally declare itself to be nestable though, but I don't think I will have that for v2.


It would probably be possible to restructure the distance custom command to run as an instant executed script rather than as a full fledged "command" though.


- 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 Gibson
2703.10 In reply to 2703.8 
Hi Burr, yeah it could be possible to attach some logic to examine a construction line like that.

Actually when you drag out a construction line right now, the distance between the 2 points of the construction line will actually currently be displayed in the distance label in the bottom command bar, beneath the x,y,z field.

So I suppose that is basicaly working right now actually.

- 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.11 In reply to 2703.9 
Ok, thanks for thinking about this Michael.
I'll be waiting for that amazing alternative that you're going to cook up :)

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.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
 

Reply to All Reply to All

 

 
Show messages:  1-20  21-28