Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 12:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Scripting Continuous Rotation
PostPosted: May 23rd, 2008, 4:28 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

I need to use scripting instead of the standard Opus animation action to rotate a vector object. Scripting would allow insertion of a variable for the rotation angle (the user would then be able to set this), while the standard animation for rotation doesn't have any way to vary the angle by variable in runtime.

The difficulty is that the standard action has a "continuous" option so that the rotation continues smoothly, which is needed in this project. I cannot find any way to set up a script that would create this same continuous rotation (the start trigger is mouse over the object, with mouse exit stopping the rotation).

Any suggestions would be appreciated.

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: May 23rd, 2008, 4:45 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Stephen,

Is this for the PM? And are you looking to set a wide range of variables or just a slow / medium / fast scenario?

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: May 23rd, 2008, 4:55 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 Mack

Yes, for the PM (pedigree drawing tool). Currently, the line rotation via mouse over/exit is done by standard animation: -1 degree, continuous while the user holds their mouse over the section of the line (frame with 5 components: shorten, rotate -1, rotate +1, lengthen, neutral drag handle).

I've been trying to give the user some control over the rotation angle while staying with this framework. It is a little difficult, for example, using -1, to easily and quickly get to 90 degrees, while a few choices (-1, 0, 45 and 90) would be helpful. They could be inserted into a variable and scripted (line1.SetRotation(anglevariable, true, .5), but it's the needed continuous feature for the "-1"choice that I can't figure out in script.

Any suggestions would be appreciated.

Kind Regards,

Stephen

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: May 23rd, 2008, 5:20 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
This can be achieved quite simply using standard Opus actions.

I'll send you an email as my uploads still don't work.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 22 guests


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