Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 7:44 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Clone object
PostPosted: November 15th, 2004, 3:13 pm 
Offline

Joined: November 3rd, 2004, 11:08 am
Posts: 14
I have created the following script for making a clone image, but the clone is still the same width and height as the original and it hasnt changed the image.

using opus pro 4 ( with no service releases installed because i have to finish this project wednesday and installing service releases will give me a delay with debugging the pub. ) the original object named kloon is in a frame.



var cloneA = kloon.CloneObject()

cloneA.SetScale(-setX,-setY)
cloneA.SetImage(set_image1)

cloneA.Show()


For this message DeMoN has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 15th, 2004, 10:30 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
If kloon is hidden, cloneA is hidden.
You can't scale a hidden object.
you will have to show cloneA before you scale it

Paul


For this message Paul has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 16th, 2004, 12:36 am 
thank you very very much :)


Top
   
 
 Post subject: not quite true.....
PostPosted: November 16th, 2004, 1:47 pm 
Offline

Joined: November 4th, 2004, 11:01 am
Posts: 21
Location: Banbury, UK
The 'show' script function actually has a default parameter which is set to true. this parameter is a 'reset transforms' option which causes any scale rotate shear movement to be reset to the original.

if you were to use >
CloneA.Show(false)

the transform information is left untouched, so you will keep you scale and position information.

Hope this helps.

_________________
Alan Dews
Senior Developer
Digital Workshop


For this message Alan Dews has been thanked by : mackavi


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