Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 18th, 2024, 9:27 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Scripting Inefficiency
PostPosted: February 15th, 2007, 1:35 am 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

I am using the same set of scripts over and over in a single pub page, each time changing the variables (for example, adding a letter-a,b,c, etc.-to create unique variables for each object in the scripts).

The scripts are pieced together from the contributions of others, and I'm afraid I never quite understood them. But I have been able to awkwardly adapt them never-the-less. I suspect my poor understanding of arrays and loops, opening, reading textObj lines, fields, has resulted in a very inefficient adaptation, a lot of extra overhead and a multitude of unecessary script actions and storage files. The pub's runtime screen for this page is slow and the resulting pub can crash.

I wonder if anyone with capable scripting skills could take a look at the attached scripts and suggest steps I could take to fix/combine them. Even if some scripts can't be combined, being able to write the "save" variable (s) into one text file, instead of using 50 standard Opus save to text file and 50 standard Opus read from text file actions would be a big reduction of overhead (here's that Open txtObj, read line or field, store in next line complexity that is way over my head). Given my limited understanding of arrays, loops, creating, reading from txtObj's, please detail suggestions and illustrate with examples.

I would appreciate any assistance.

Kind Regards,


You do not have the required permissions to view the files attached to this post.

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 15th, 2007, 1:10 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
will put together a quick video tutorial for this...

Areas you can find in the help files that are of interest are "External Scripts", and "Functions"

Will put together a brief how-to video.

Planned for Sat 17th earliest, on my 4 days on at work so a bit busy till then.


For this message eomc40 has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 15th, 2007, 2:15 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi eomc40

Thank you very much.

In fact, the only efficient and economic script that is on this pub page is for line rotation, which you helped me create. I wish I understood it well enough to replicate for the other cloned symbols (squares, circles, other graphic objects, a few of which require a way to save and reset transparency state in addition to their position).

The line script is elegantly simple and all line data (size, angle, position) are saved to one text file. Unfortunately, even though I've done a lot of reading and tried many times to apply it and the underlying concepts, I'm unsuccessful.

If only I could figure out how to script the numerous other symbols similar to the lines. Then I would have one script for all objects and one storage text file for all data. That would cut down the overhead, make for quicker page loading and actions and avoid crashes.

(eomc40: If you would like to see a cut down version of the .imp file with the actual objects and scripts, I can either attach a zipped file to an e-mail or provide a URL to download the zip file. I don't want to post the .imp on the Forum and, unfortunately, can't use Forum's private messaging, since it is disabled.

So, if it would be helpful for you to see the objects and their scripts, please use my e-mail address below to send me your e-mail address and your preference for e-mail attachment or URL.)


Again, thank you for your assistance.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group