Page 1 of 1

A Question about Meshes and Pages

PostPosted: Mon Jul 13, 2009 6:57 pm
by Tyion
I have a question: is there a way to add a ton of meshes (all at once) to a page? or do we have to do it 1 by 1?

Thanks Guys

"Ty"

Re: A Question about Meshes and Pages

PostPosted: Tue Jul 14, 2009 10:18 pm
by Lontahv
Here's a small script I made for you to do this.

Code: Select all
import Blender

pagenum = <your page_num>

objects = Blender.Object.GetSelected()
for obj in objects:
   p = obj.getProperty("page_num")
   if p:
      p.setData(pagenum)
   else:
      obj.addProperty("page_num",pagenum)


First, open a new Blender text document. Paste this code in and change the <your page_num> thing to the number that you want the object's page to be set to. Then, you select the objects you want to have the page changed on and go back to the text editor and click the "Text" menu and select "Run Python script" or just press ALT+P. You should have some experience with the text editor from changing your alc-script and FNI and adding pages etc..

Good luck. :)