Python Files

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!

Re: Python Files

Postby diafero » Tue May 11, 2010 1:06 am

Sounds like a good plan to me, Dustin. Just give the files a common prefix.
I'd be glad to help out, but without 3ds Max, that's not going to work, I guess ;-)
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: Python Files

Postby D'Lanor » Tue May 11, 2010 6:43 am

Returning to the subject of custom Python files, do we need to set a standard for the id numbering? I don't suppose many of us will load a lot of python files for fan ages of others in Max, but those who do could run into trouble.

What is the id number range that the plugin accepts? Could we use our sequence prefixes as ids? And does it accept decimals? Then we could use decimal numbering if the age has multiple Python files. For example:
Code: Select all
self.id = 10496.11

This would be the 11th Python file for my age which has sequence prefix 10496.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Python Files

Postby andylegate » Tue May 11, 2010 7:39 am

In my Ages like Camp Bravo and Andy's Nexus, I used large numbers as the ID's. I used the Age's sequence number (IE Camp Bravo 5200) and then added a 3 digit serial number to it:

5200001

And they all seemed to work fine. I don't know about decimals however.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Python Files

Postby Aloys » Tue May 11, 2010 7:45 am

I'm all for standard ID systems to avoid conflict; and using the Age's Sequence Prefix as a base sound lile a simple and robust system.
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: Python Files

Postby ddb174 » Tue May 11, 2010 7:50 am

Yeah, that way we don't need a second registry of numbers!
ddb174
 
Posts: 928
Joined: Thu Apr 10, 2008 7:28 pm

Re: Python Files

Postby D'Lanor » Tue May 11, 2010 9:47 am

andylegate wrote:In my Ages like Camp Bravo and Andy's Nexus, I used large numbers as the ID's. I used the Age's sequence number (IE Camp Bravo 5200) and then added a 3 digit serial number to it:

5200001

And they all seemed to work fine. I don't know about decimals however.

I hope decimals work. That would make the system full proof. If people in the lower sequence prefix range add digits to the end there is still a chance for conflicts.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Python Files

Postby Jojon » Tue May 11, 2010 10:16 am

I figured the same and was about to post to that effect, but realised that as long as EVERY python file uses the exact same system and the suffix is ALWAYS the same, fixed, number of digits, zero-padded, we shouldn't be able to mix up say, 520-001 and 5200-001 -- thinking of them more as strings, which can be truncated, than integers. :7
That may be hoping for a little bit too much, though... :)
Jojon
 
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Previous

Return to Building

Who is online

Users browsing this forum: No registered users and 8 guests