Show messages:
1-11
12-31
32-36
From: Michael Gibson
Hi Marco,
re:
> ...what about the "scripts" folder instead ?
>
> I see that also this folder is a suitable place for scripts, that haven't a UI
> associated, in order to be executed.
You can place a script that is intended to be run as an "immediate script" (not run as a "command" that has UI and generates objects) into that folder yes.
But I think that Brian's script that is being referred to in this thread is one that has a companion .htm file for UI and so it is meant to be run as a command and not as "immediate script", and so like I wrote previously, you would need to put it in the commands folder, not the scripts folder.
For a script that can be run as "immediate script" (where it executes immediately and does not have any UI), there are a few options, you can make a "scripts" folder as a sibling to "commands" and put the script in there, and it's also possible to put it in any folder you want and then put in a full path to the script file (including .js file extension) in your keyboard shortcut. But you can't do this with commands though, MoI will only look for a command type script inside the commands folder.
- Michael
From: mkdm
Hi Michael,
Thanks a lot for your clarifications regarding the "immediate script" folders.
Nice night,
Marco.
From: Andy (ANDYT)
Hi Brian
Regarding your spiral script, is there any way to have a non linear control over the parameteres like growth and ofset - see attached image for an idea of what I am trying to achieve - the yellow line is a standard spiral using your script and the red line is one where I have manually adjusted the spiral outer arm. I am wondering if its possible to use your script slightly adjusted to get closer to a mathematical pure solution for this, giving a slower start and increasing openness
When you push the standard spiral growth and ofset the outer arm becomes very flat
Not being a maths expert, but I am wondering if it is possible to have a non linear growth from one spiral 360 degree revolve to the next ? where the growth starts small but increases in a non linear way ? This growth could perhaps be controlled by a curved line giving very subtle growth control (maybe elliptical 1/4 section) or a %
This could also be applied to the Z direction depth growth, to give a non linear and more natural feel. I have achieved this by projecting from a 2D spiral line down onto a domed revolved surface
Best wishes
Andy
Image Attachments:
Screen Shot 2016-04-28 at 07.56.35.png
From: bemfarmer
Hi Andy,
I'll have a look later.
I had been studying a spiral using quarter arcs.
- Brian
From: Andy (ANDYT)
Hi Brian
Having written my last message it occured to me that I could probably work a solution using geometry - see attached .3dm file, which works really well
Take a spiral from your original script and extrude it down to a point, then revolve a curve (to give a lense fisheye effect) and then use curve - intersect for the result
Going back and adjusting the revolved 2D curve gives a real time visual intersection so you can visually adjust to suit your requirements :-)
Best wishes
Andy
Attachments:
Geometry solution spiral .3dm
Show messages:
1-11
12-31
32-36