Working on clones,
Have several objects that are cloned and their display imformation i.e. x, y coordinates and the rotate angles saved to file.
I am stuck in re-registering the recreated clones as follows
On opening the file as the data-driver for the subequent opening of the publication, I stripped out the value from file to point to the original images
file contents
--------------
Object1.2147483648 345.046 422.5 230.5
Object3.2147483649 345.046 548.5 67.5
Object4.2147483650 345.046 572.5 359.5
reading the line to get i.e. Object1, Object3 and Object4
var line_Array = readline.split("\t")
var line_object = line_Array[0].split(".")
Now the hurdle I can't get my head round is the clone event, managing to clone to location but can't capture the clone name
This is what I need
myClones[num] = this.CloneObject(160,90,true); num++
above was used in the initial run to create and register the position of the clone.
But can only get the eval to work as follows
var position = thisobject + "." + 'CloneObject(line_Array[2],line_Array[3],true)' eval(position)
This does clone and position as per line_Array[2],line_Array[3]. but appears like the created objects are not can't be referenced for events required such as
DestroyClonedObject()
Any help will be appreciated...
|