General Category > ASL Scripts
VRML
Paulo:
nobody could help me ? :(
Raxx:
Have you bothered looking at the ASL tutorial list in this board? Technically a "hello world" tutorial isn't useful at all in this setting, just follow one of the tutorials out there step by step and read the references until you get results. If you have no prior experience with scripting, start small!
Paulo:
I read ASL specifications and the two tutorials. But I didn't find how to create my own function ! Then I think I'll be able to format the string as I want. My exporter is nearly ready to be released ;)
Raxx:
I don't think you can make your own functions. You'll have to be creative with for and while loops. I'm sure you can do it! I worked on my own export script a while back and it wasn't that hard to work around the limitations! (reminds me that I should go back to it sometime...)
Paulo:
That is ok, this is the code I made (it's simple, but it can be useful for a beginner) :
--- Code: --- $s=$shape.name;
for $ii = 0 to ($s.length() - 1) do {
if ($s.GetChar($ii) == 32) {
$s=$s.SetChar(95, $ii);
}
}
--- End code ---
My exporter works fine, but I'm going to improve it a litle bit :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version