Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 12:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Opus script - get scale, get rotation
PostPosted: October 14th, 2016, 8:36 am 
Offline

Joined: January 28th, 2014, 4:38 pm
Posts: 54
Location: Czech Republic
Opus: OpusPro 9.75 - HTML5 exports, Evolution
OS: Win 7 x64 CZ
System: FUJITSU
I'd like to create a webpage using the OpusScript for aircraft "simulator".

There will be around 15 aircraft on the page. User can change a direction (.Rotate()) and acft scale (.Scale()) now.

I'd like to add a fly functionality (.Move()). I know how to calculate x a y corrdinates for the next acft position but I haven't found a way how to get a current rotation and scale using the OpusScript.

Exported object in HTML/Javascript has all needed properties available but I'd rather to use OpusScript which will be converted to Javascript.

Thanks.
ovo


For this message ovo has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Opus script - get scale, get rotation
PostPosted: October 14th, 2016, 3:09 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
Maybe this item in the Opus Scripting help guide would be useful: GetDisplayData() ?

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Opus script - get scale, get rotation
PostPosted: October 18th, 2016, 12:44 pm 
Offline

Joined: January 28th, 2014, 4:38 pm
Posts: 54
Location: Czech Republic
Opus: OpusPro 9.75 - HTML5 exports, Evolution
OS: Win 7 x64 CZ
System: FUJITSU
I tried to search in Opus Script intensively before asking the question but I didn't know about GetDisplayData() function and there is no reference from Set functions. Now I get all the information I need, but unfortunately it is not supported in HTML5.

Thanks anyway.

Ota


For this message ovo has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Opus script - get scale, get rotation
PostPosted: October 18th, 2016, 1:26 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Do you know the original rotation and scale values?

</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 24 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group