Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: scaling a group of objects
PostPosted: August 30th, 2008, 4:04 pm 
Offline

Joined: December 11th, 2004, 12:51 am
Posts: 36
Location: UK
Is there a way to scale a group of objects about the group centre using opus script?

I have the following problem:
-I have 3 drop zones (body_zone, bill_zone,legs_zone), all grouped together (group_zone)
-during run-time, the user drag-and-drops a picture of a body&head of a bird
-then same for a bill
-then same for a set of legs
-they all go to the centre of their respective drop frames within the group and fit together nicely (ie. bill is on end of head, legs are at bottom of body etc!)

Now the problem:
-I now want to scale them down by, say, a factor of 0.5
-I thought I would be able to do this by using Scale on the group (group_zone), but it does not seem to work. Pictures stay at same scale.
-I can scale each separate Image within the drop zone using Scale, but as they all have different centre positions, the bill, body and legs 'drift away' from each other when scaling down

The only solution I can come up with is to calculate the neccessary movements in X and Y for the centres of the bill_zone, body_zone and legs_zone relative to the group_zone, then use fork to simultaneously Scale and Move each drop zone.....they should then appear to scale down together.....(hopefully).

The above solution assumes scaling operates relative to the centres of each drop zone...I need to check this...it might be relative to the top-left corner of each drop zone.

Any better ideas appreciated.

Regards,
Mark

Opus Pro V4.5


Top
 Profile  
 
 Post subject:
PostPosted: August 30th, 2008, 6:04 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
If you have 2 images in a frame and scale the frame, both images scale in the way you want.

I think you would need a frame for each creature with all the bits contained in the frame. The frame would need to be full screen size. When all bits are dropped in the correct position, scale the frame??? this assumes that all the capabilities of drag and drop works within a frame..I think they should

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: August 30th, 2008, 8:02 pm 
Offline

Joined: December 11th, 2004, 12:51 am
Posts: 36
Location: UK
Thanks for the reply.

It seems that the problem is I was dropping a body image into a body frame, then a legs image into an image frame, then a bill image into a bill frame. All 3 frames were then grouped into a group frame. I then expected the images to scale if I scaled the group frame. This does not appear to happen.

Decided the best course of action similar to your sugestion:
- make all images the same size and drop into the same frame.
- by using 'purple backgrounds' to images of bodies, bills and feet and selecting purple as transparent, the parts all appear in the correct positions.
- a bit more photoshop work, but the scaling is alot simpler as they all have the same dimension, centre etc.

Thanks for your help.

/Mark


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 26 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