A Question about Meshes and Pages

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

A Question about Meshes and Pages

Postby Tyion » Mon Jul 13, 2009 6:57 pm

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"
Tyion
 
Posts: 126
Joined: Fri Dec 28, 2007 2:52 am
Location: In the land of Hyrule!

Re: A Question about Meshes and Pages

Postby Lontahv » Tue Jul 14, 2009 10:18 pm

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. :)
Currently getting some ink on my hands over at the Guild Of Ink-Makers (PyPRP2).
User avatar
Lontahv
Councilor of Artistic Direction
 
Posts: 1331
Joined: Wed Oct 03, 2007 2:09 pm


Return to Building

Who is online

Users browsing this forum: No registered users and 6 guests

cron