General Category > ASL Scripts

ASL Parametric Script Questions

<< < (2/3) > >>

NickE:
Steve,

I'm not sure I understand your last post.  It is entirely possible to access the other shapes in an object from a parametric script.  I do it in the parametric version of the chain_maker script.  It follows the splines that are renamed to "chainpathXX".  The only limitation was the inability to see what had been previously selected or access the coordinates of the mouse click that activated the script.

Kubajzz:

--- Quote from: NickE on June 13, 2008, 11:54:48 am ---...The only limitation was the inability to see what had been previously selected or access the coordinates of the mouse click that activated the script.

--- End quote ---

...and another limitation is that you must not edit/rename/delete the spline after the chain is built (unless you convert the chain to mesh).

Great script anyway, I didn't believe anithing like this would be possible  ;)

Steve:
Well, I never intended for that.  Accessing other objects really shouldn't be allowed :)  That makes parameteric scripts unpredictable as you've discovered.

NickE:
Steve,

Not entirely unpredictable...one must just be careful on how the script is used.

On another note, is there (or will there be) a function that will let one access the information in multiple objects in the project in the same manner as one can access the multiple shapes in an object?

hihosilver:

--- Quote ---Another more likely possibility is to make a new kind of script - a "derivative object" script or some such name.  You'd build a shape of some sort (e.g. a spline) and then attach a script to it.  Whenever the shape was modified the script would be run.   The base shape wouldn't be visible (except in the Object editor where you could edit it) but the result of the script would.  I think that would do something more like what you want.  Anyway it's an interesting idea.
--- End quote ---

This sounds like a fabulous idea to me.  It may be difficult to figure out how to show the progress though.  Perhaps there'd have to be a button like the hide/show bones button.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version