Myriad Forum « Re: Copy/Paste Free Objects to another page? »
 Welcome, Guest.
 You can read all messages, but to be able to post,
 please Login or Register.
Jul 21st, 2018, 8:20am 
   Myriad Forum
   Melody Assistant / Harmony Assistant
(Moderator: Forum Administrator)
   Re: Copy/Paste Free Objects to another page?
« Previous topic | Next topic »
Pages: 1  Reply | Notify of replies | Print
   Author  Topic: Re: Copy/Paste Free Objects to another page?  (Read 524 times)
bubu42
Board Master
*****





   


Gender: male
Posts: 8945
Re: Copy/Paste Free Objects to another page?  
« on: Dec 21st, 2017, 1:01pm »
Quote | Modify

The best thing to do is access the free objects window and duplicate your object, then change the page number.
If the object is to appear on all pages, use the dropdown list which is at the right of the page number input box (by defaul it sows "from first page")
offline
bubu42
Board Master
*****





   


Gender: male
Posts: 8945
Re: Copy/Paste Free Objects to another page?  
« Reply #1 on: Dec 21st, 2017, 3:06pm »
Quote | Modify

on Dec 21st, 2017, 1:03pm, Gazza wrote:
Thanks. I wasn't clear in my question.  
 
Can I Copy/Paste Free Objects to another DOCUMENT page?

Well, the copy/paste function doesn't work with free objects. The closer I can get for a text element (which is probably the best suited for a copy/paste action) is this :
1- Edit the original text object.
2- Ctrl+A, Ctrl+C (select all, copy)
3- Create a free object (text) on the other document
4- Edit the new free object and Ctrl+V (paste)
You'll get the text with all its characteristics (font, size, color, etc.)
offline
Gazza
Board Full Member
***





   


Gender: male
Posts: 143
Re: Copy/Paste Free Objects to another DIFFERENT DOCUMENT page?   output_problem_1.jpg
« Reply #2 on: Dec 21st, 2017, 3:24pm »
Quote | Modify

Thanks for your help.
 
I've written lots (70) of separate A4 pages. And now want to add 5 Free Objects to each of them.  
 
I looks like copy and pasting and then painstakingly repositioning them manually is the only option. Shame.
offline

bubu42
Board Master
*****





   


Gender: male
Posts: 8945
Re: Copy/Paste Free Objects to another DIFFERENT DOCUMENT page?  
« Reply #3 on: Dec 21st, 2017, 7:13pm »
Quote | Modify

on Dec 21st, 2017, 3:24pm, Gazza wrote:
I've written lots (70) of separate A4 pages. And now want to add 5 Free Objects to each of them. I looks like copy and pasting and then painstakingly repositioning them manually is the only option. Shame.

70 is quite a lot.
I wonder whether a script couldn't do the job.  
The aim : have the master document with all the free objects in place, open a file and apply the script which would copy each free object from the master.
The problem : the script doesn't exist so far and I don't know whether these free objects can be accessed through Myrscript.
I'll try to investigate...
offline
Daniel Frouvelle
Board Master
*****






   
WWW | Email

Gender: male
Posts: 1408
Re: Copy/Paste Free Objects to another page?  
« Reply #4 on: Dec 21st, 2017, 8:34pm »
Quote | Modify

Bonjour Gazza, tu peux essayer avec CE SCRIPT
Il se place dans Scripts>Divers Scripts>Miscellaneous

Rotation de la molette pour choisir la partition source et la partition cible, Clic dans le bouton du bas pour copier tous les objets libres de la partition source vers la partition cible.
pour bubu, c'est très simple :
 
for i=1, ScoreSource.NumberOfFreeObjects do
   OL1=GetLocalCopy(ScoreSource.FreeObjects[i])
   OL2=ScoreCible.NewFreeObject(OL1.Type)
   PutLocalCopy(OL1,OL2)
end

 
Amistats, Danièl.
« Last Edit: Dec 23rd, 2017, 7:07pm by Daniel Frouvelle » offline
bubu42
Board Master
*****





   


Gender: male
Posts: 8945
Re: Copy/Paste Free Objects to another page?  
« Reply #5 on: Dec 21st, 2017, 9:35pm »
Quote | Modify

on Dec 21st, 2017, 8:34pm, Daniel Frouvelle wrote:
pour bubu, c'est très simple :
for i=1, ScoreSource.NumberOfFreeObjects do
   OL1=GetLocalCopy(ScoreSource.FreeObjects[i])
   OL2=ScoreCible.NewFreeObject(OL1.Type)
   PutLocalCopy(OL1,OL2)
end

Amistats, Danièl.

Merci bien. C'est le PutLocalCopy que je n'avais pas vu... Du coup, le code que j'avais commencé était bien plus complexe car j'essayais de copier les valeurs une à une...
offline
Daniel Frouvelle
Board Master
*****






   
WWW | Email

Gender: male
Posts: 1408
Re: Copy/Paste Free Objects to another page?  
« Reply #6 on: Dec 23rd, 2017, 7:18pm »
Quote | Modify

Bonsoir, en  voulant intégrer cette fonctionnalité dans le script "Mise en pages" (au niveau de la copie sur une partition d'un modèle prédéfini) je m'aperçois que le texte des objets libres de type texte n'est pas copié. dans ce cas il faut rajouter la ligne :  
for i=1, ScoreSource.NumberOfFreeObjects do
   OL1=GetLocalCopy(ScoreSource.FreeObjects[i])
   OL2=ScoreCible.NewFreeObject(OL1.Type)
   PutLocalCopy(OL1,OL2)

   if OL2.type==0 then OL2.text=OL1.Text end
end
On peut charger la version 3 SUR CE LIEN
Amistats, Danièl.
« Last Edit: Dec 29th, 2017, 10:38pm by Daniel Frouvelle » offline
Gazza
Board Full Member
***





   


Gender: male
Posts: 143
Re: Copy/Paste Free Objects to another page?  
« Reply #7 on: Dec 23rd, 2017, 10:07pm »
Quote | Modify

Merci tout le monde!
 
How do I change the destination page/file?
offline
Daniel Frouvelle
Board Master
*****






   
WWW | Email

Gender: male
Posts: 1408
Re: Copy/Paste Free Objects to another page?  
« Reply #8 on: Dec 23rd, 2017, 10:28pm »
Quote | Modify

With the script scroll the mouse wheel to select Source and Destination files.
Danièl.
offline
Gazza
Board Full Member
***





   


Gender: male
Posts: 143
Re: Copy/Paste Free Objects to another page?  
« Reply #9 on: Dec 27th, 2017, 7:25pm »
Quote | Modify

On a laptop Macbook Pro. No mouse wheel. Can't seem to select sorry.  
 
Also is there an option to select exactly WHICH Free Objects are copied as I want just 4 of 28 on the page.
 
Thanks.
offline
Daniel Frouvelle
Board Master
*****






   
WWW | Email

Gender: male
Posts: 1408
Re: Copy/Paste Free Objects to another page?  
« Reply #10 on: Dec 29th, 2017, 10:43pm »
Quote | Modify

Bonsoir Gazza, on peut maintenant choisir la partition source et destination par simple clic dans les boutons.
Pour copier certains objets libres uniquement, le mieux est de supprimer les objets libres inutiles puis sauvegarder la partition sous un autre nom (par ex : "FreeObjects Models") et les copier sur les autres partitions avec le script.
 On peut charger la version 4 SUR CE LIEN
Amistats, Danièl.
offline
Gazza
Board Full Member
***





   


Gender: male
Posts: 143
Re: Copy/Paste Free Objects to another page?  
« Reply #11 on: Jan 2nd, 2018, 11:08pm »
Quote | Modify

That's brilliant thanks.
 
Any way it can now select WHICH Objects are copied?
offline
Pages: 1  Reply | Notify of replies | Print

« Previous topic | Next topic »

« Myriad Forum » Powered by YaBB 1 Gold - SP 1.1!
YaBB © 2000-2002,
Xnull. All Rights Reserved.

Top of page
Legal information Last update:  (c) Myriad