Users browsing this thread: 1 Guest(s)
Another UMC side-thread
#19
I'm starting another script:
-see edit for link-

though I'm not too good at reading max-script, so don't bite me if there's issues Tongue
if I can gain RTB's help on this, the script might just be in the release Wink

also, the GL error issue is fixed, marth and others import now Smile
[Image: marth2.png]
and I also found a new object on the slick star which didn't import last time:
[Image: slickstar.png]

EDIT:
just got finished fixing up RTB's syntax: (it's actually readable now, though still dirty)
https://copy.com/wnsFsqIgMTMCQYCa (copy can't display the file)
my script is here: (being translated from RTB's script)
https://copy.com/fG3pJg4ui2AZHFCT
there will definitely be alot less variables, and term translations:

vertex -> facepoint (makes more sense and doesn't confuse "vertice" along with it, which is "vert" in my terms)
various: skin -> rig, bone, or weight (skin is too general, like alot of other 3D terms)

RTB, how the heck could you work with that, the syntax alone gave me a headache O.o
lol

EDIT2:
because when coding sucks, I have to be an A and bost about how it could've been done better... lol
of course though this is a translation from max to python... heh

RTB's code:
Code:
-- <- because this indentation is removed for some reason
                BoneName = readstring q
                if x < 10 do(BoneName = "00" + x as string + " - " + BoneName)
                if x > 9 and x < 100 do(BoneName = "0" + x as string + " - " + BoneName)
                if x > 99 do(BoneName = x as string + " - " + BoneName)

my code:
Code:
# <- because this indentation is removed for some reason
                    BoneName = "%03i-%s"%(x,string()) # read until 0x00

both do the same exact thing:
Code:
>>> '%03i'%2222
'2222'
>>> '%03i'%22
'022'

for max, because I don't know much, I'd just recommend this to keep the code clean:
Code:
-- <- because this indentation is removed for some reason
                BoneName = x as string + " - " + (readstring q)
^ if this doesn't work, at least you know my intentions. (1-liners are awesome)

hey RTB, wanna compete for cleanest code Cute
lol
[Image: banner.PNG]
Reply
Thanked by:


Messages In This Thread
Another UMC side-thread - by Tcll - 12-13-2014, 01:18 AM
RE: Another UMC side-thread - by Tcll - 12-13-2014, 11:44 PM
RE: Another UMC side-thread - by Struggleton! - 12-13-2014, 11:44 PM
RE: Another UMC side-thread - by Tcll - 12-14-2014, 12:30 AM
RE: Another UMC side-thread - by Tcll - 12-15-2014, 09:56 PM
RE: Another UMC side-thread - by Tcll - 12-17-2014, 03:17 PM
RE: Another UMC side-thread - by puggsoy - 12-17-2014, 08:39 PM
RE: Another UMC side-thread - by Struggleton! - 12-17-2014, 09:15 PM
RE: Another UMC side-thread - by Tcll - 12-17-2014, 11:34 PM
RE: Another UMC side-thread - by Tcll - 12-18-2014, 01:55 AM
RE: Another UMC side-thread - by Tcll - 12-27-2014, 02:57 AM
RE: Another UMC side-thread - by Struggleton! - 12-29-2014, 12:37 AM
RE: Another UMC side-thread - by Tcll - 12-29-2014, 12:43 AM
RE: Another UMC side-thread - by Tcll - 01-01-2015, 01:59 PM
RE: Another UMC side-thread - by Tcll - 01-29-2015, 12:26 AM
RE: Another UMC side-thread - by Tcll - 01-30-2015, 01:22 AM
RE: Another UMC side-thread - by Tcll - 02-14-2015, 07:02 PM
RE: Another UMC side-thread - by Tcll - 02-15-2015, 03:37 PM
RE: Another UMC side-thread - by Tcll - 02-28-2015, 09:03 AM
RE: Another UMC side-thread - by Tcll - 03-10-2015, 09:11 AM
RE: Another UMC side-thread - by Tcll - 03-22-2015, 08:59 AM
RE: Another UMC side-thread - by Tcll - 03-31-2015, 12:54 AM
RE: Another UMC side-thread - by Tcll - 04-04-2015, 09:58 PM
RE: Another UMC side-thread - by Tcll - 04-11-2015, 09:23 AM
RE: Another UMC side-thread - by Tcll - 04-14-2015, 01:19 AM
RE: Another UMC side-thread - by Manki - 04-14-2015, 07:37 PM
RE: Another UMC side-thread - by Tcll - 04-14-2015, 08:54 PM
RE: Another UMC side-thread - by Tcll - 06-14-2015, 03:43 PM
RE: Another UMC side-thread - by Tcll - 06-18-2015, 09:20 AM
RE: Another UMC side-thread - by Tcll - 06-21-2015, 09:22 AM
RE: Another UMC side-thread - by Tcll - 07-09-2015, 01:27 PM
RE: Another UMC side-thread - by Tcll - 07-09-2015, 11:43 PM
RE: Another UMC side-thread - by Tcll - 08-10-2015, 10:26 PM

Forum Jump: