Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Change frame/text box size via script
PostPosted: March 29th, 2007, 6:45 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
Is it possible to change the size of a frame via scripting?


Last edited by josephroddy on April 25th, 2007, 6:41 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: March 29th, 2007, 9:09 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
A frame is just another object; it scales like most things in Opus.

Paul


Top
 Profile  
 
 Post subject:
PostPosted: March 29th, 2007, 9:55 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
Yes, it does. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: April 25th, 2007, 6:42 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
I remember now what I was trying to do, only gone back to that project today. It's the text box I want to change the size of so I can fit more text in it.

I don't want to scale as that will scale the text too, just the size of the box so more text can be entered in.

Any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: April 25th, 2007, 10:18 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
Hi Joseph,
I thought there might be an easier way than this -- what I have here might be overkill and someone else might know a more simple approach.

The script in the sample resets the size of the text box by a particular ratio then adjusts the font size by the inverse ratio to compensate.

It seems to work ok.

cheers
Paul


Top
 Profile  
 
 Post subject:
PostPosted: April 25th, 2007, 11:54 pm 
Offline

Joined: November 28th, 2004, 6:05 am
Posts: 141
Location: USA
There is an easier way

SetObjectSize()

See attached

HTH
Chris


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

_________________
Opus Resources and Services


Top
 Profile Visit website  
 
 Post subject:
PostPosted: April 26th, 2007, 12:48 am 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
Thanks chris, now I feel suitably embarassed :oops: .
At least it was an interesting exercise :-)

Paul


Top
 Profile  
 
 Post subject: Re: Change frame/text box size via script
PostPosted: March 7th, 2011, 12:53 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
What a great function: SetObjectSize()

Thanks.

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


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

All times are UTC [ DST ]


Who is online

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