Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GetFillColour?
PostPosted: August 27th, 2007, 5:56 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
Hi,

The function Polygon.SetFillColour("green") is extremely useful. Is there a similar function to get the fill of a polygon and have it set to a variable?

I tried var=Polygon.GetFillColour() but this doesn't work. If the function doesn't exists can I request it future version/update.


Also there appears to be a small bug in the Script Tab in the Actions of an object. This is the small script box within Action, if you copy and paste text in here it maintains font style/size and formating.

This does not happen in the script object.


For this message josephroddy has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: GetFillColour?
PostPosted: August 25th, 2016, 9:35 am 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Hi All,

I searched for a GetFillColour function and this was the only forum result. Is there any way in Opus 9.75 to get the RGB fill and RGB line of a vector polygon via scripting?

I want to have a variable of the RGB fill and line colour so I can manipulate them easily. This is a Windows exe publication I am working with.

Thanks, Luke

_________________
Opus Pro 9.75 on MacBookPro (2020 Intel) running Parallels 19 with Windows 10 (x64)


For this message lmc has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: GetFillColour?
PostPosted: August 25th, 2016, 6:00 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
SetFillColour and SetLineColour will change the polygon.

There is no specific function for getting the values, but then you already know them when you create the vector - so why not just use OOP or a variable to hold the 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  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 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