150 Posted Topics
so basically... what I want to do is identify the function calling the dynamically created/referenced class let's put this simple... I have 2 functions, both of which either create or reference the same class based on an input... this function then returns the class with specifically set parameters. (not an … | |
so basically... I have a dynamic memory sub-system that does this: d = bu32() # a value from dynamic memory (such as 2) print d print type(d) p = ref(d) # a pointer deref( p, bu16 ).set(10) # short *p = &d; *p = 10; //(not sure if correct) print … | |
first off, I hope it's not against the rules for me to request optimization... :x I've tried to write the code with my best understandings of python optimization (which isn't much). def ov( value, byte_size ): sign = False if value<0: value += 1; sign = True value = abs( … | |
this is just a nifty feature I can't seem to find on google... (I've found 1 src "Windows7ProgressBar", but I can't get it working with the bad instructions provided) ^ I'm guessing they expect you to know C# when they say "drag the control over the form" - the "control" … | |
so basically, I have a plugin for a forum that applies a glow effect to the message content... however, in modern browsers quotes and codes also have the glow applied to them, unless negated by another glow, while in IE8, this also affects images and other content... how can I … | |
so.. to put this simply: >>> BU5 = bu(5) >>> BU5() 0 >>> BU5(1024) 1024 >>> BU5 == bu(5) False >>> BU5 <__main__.bu instance at 0x00AC5E40> >>> bu(5) <__main__.bu instance at 0x012C6788> BU5 == bu(5) is supposed to return True due to it's expected usage: >>> var = bu(5)() #read … | |
Re: finally, somebody who can show their programming skills *awesomeface* lol jk (this code made me gazm because of [this](http://picasaweb.google.com/tcll5850/umcsl#) (my language can finally be completed)) great work PyTony ;D | |
Re: I prefer Python 2.7 as I'm hardcore into PyOpenGL (which runs slower on Py3x) | |
Re: might I suggest checking array.array() and bytearray() :) or I will when I stop being lazy XD | |
Note: this isn't a questional thread. I need help in building an accurate and efficient Vector class which supports 1D to 4D vectors with their various manipulation/transformation methods. in the end, I want the result to be a reference for other users to copy from. this class is not meant … | |
so basically, what I've got is a handful of BBC text like such: [tree]title0 [node]title1 title2 [node]title3 title4 title5[/node][/node] title6 title7[/tree] using JS, how could I parse this to get this into this?? [ title0, [ title1, title2, [ title3, title4, title5 ] ], title6, title7 ] what I intend … | |
currently this is what I have: (in the dynamicly created <img/>) <body onload = " document.getElementById('html').value= '...'+ 'onmouseover="this.src = ’image.png’"'+ '...'; document.body.innerHTML = document.getElementById('html').value "> but obviously ’ is not right... can someone help plox :/ EDIT: getElementById('html') is a textarea (innerHTML only updates properly with this method) | |
so I'm quite the noob when it comes to texture based things... how would I apply a material that contains more than 1 texture to an object?? my current code: if SDType=="_Mesh": __GL.glLineWidth(1.0) MaterialName,AddOn,MatColors,Textures,R1,R2 = Libs[4][SDData1] if type(SDData1)==int else [ "UMC_Def_Mat", '', [[1.0,1.0,1.0,1.0],[1.0,1.0,1.0,1.0],[0.5,0.5,0.5,1.0],[0.0,0.0,0.0,0.0],25.0], [], [], [] ] MAR,MAG,MAB,MAA = MatColors[0] … | |
so I'm limited to a single class used by this span element in a forum plugin. I want to style it to work exactly like the buttons of my forum. here's my current code: color: #000000; background: #808080 left center repeat-x scroll url('http://images.proboards.com/v5/gradients/darkness.png'); padding: 5px; display: inline-block; what can I … | |
Just to note, this thread may never be marked solved until my main project evolves. anyways... To put it simply, this language is a common-interface language meant for conversion between all languages. This means that this language has to support all features between all languages in the most simplest of … | |
alright... so here's a quick demonstraition of what I'm trying to do: def calcInfluence(Coords): #apply to verts from global location Ix,Iy,Iz = 0.0,0.0,0.0 for (Px,Py,Pz),(Lx,Ly,Lz),(Rx,Ry,Rz),(Sx,Sy,Sz),W in Coords: #P = Point of transformation (base of the bone) #L,R,S = Loc,Rot,Sca #W = Weight Ix += Lx*W Vy += Ly*W Iz += … | |
IMO, VS2010 with PythonTools 1.5 is the best IDE. it may not be as glamorous as Eclipse or PyScripter, but it certainly has more functionality and accuracy than either of them. -intellisense (PyScripter does a better job than Eclipse) -split file scrolling (not sure about PyScripter, but Eclipse doesn't have … | |
[Click Here]( ok... so I'm trying work on a system that uses models composed of... basically the raw data you get from a curve... (after multiplying the points together to get the equation) I've been trying to visualize a concept for this method since I was in middle school (back … | |
[Click Here](thinking of PyReadLine... anyone know of a library that can color pixels in the console instead of text??) | |
ok so here's what I have... due to the hardware interface, a model file contains a pre-transformed version of the actual model. (verts are prepaired for animation transformations) what I'm trying to get is the default T-Pose of the model. but to get that, I have to transform it via … | |
Re: [Click Here](well I am able to log in again, but I can't post easily... is there a text only mode for making a post??) [Click Here](as you can see, I have to use the link input to type anything... the textbox only responds to the arrow keys, Enter, and Delete … | |
[Click Here](hey there everyone... :) I need some help with an external runtime interface with PyQt... here's my current code: import API API.init() #show the Qt window _init_(depth) #(this module): print text to both the console and the Qt window (checking for updates to API) API.run(files) #take over the Qt … | |
hey guys... I just need a little help with my encoder... this is the problem: [Click Here](http://lh3.ggpht.com/-UC0gFCTBDM0/UE9xMsYt_sI/AAAAAAAAEBw/sCXGlO4XWRQ/s1280/float%2520to%2520bin.jpg) my code: def f(byte_size,value): e=((byte_size*8)-1)//(byte_size+1)+(byte_size>2)*byte_size//2 m,b=[((byte_size*8)-(1+e)), ~(~0 << e-1)] OS= '1' if value<0 else '0' #sign I,F=str(abs(value)).split('.') I=bin(int(I)).replace('0b','') FB='' l=0; r = int(''.join(['1']*e),2)+m while l<r: B,F=str(float('0.'+F)*2.).split('.') FB+=B if F=='0': break l+=1 #print FB … | |
Re: the X format can be in both binary and ASCII, although I've only seen ASCII so far... I currently don't know too much about the format myself, but I can tell you it uses bones to animate, and that the animations are internal | |
I'm sure you guys can gather from the title... this project requires alot of work to work :P you can see my current progress at: [url]http://tcll5850.hostoi.com/tabs.htm[/url] I called it "Tabs" because the original development was just a basic tab system using the Opera browser... that works perfectly. well... somewhat... I … | |
first off... a litte explanation as to what I'm doing... this is basically a way for me to create an update system for my program... the webhost I'm using allows hot-file linkage, so there's nothing that's improper... (except for my compy not having net) anyways... the structure I have for … | |
hey... I can't seem to find any tutorials that only use PyOGL... can anyone help out?? also... I found an early thread asking the same Q, where vegaseat mislead someone about OGL back in 2008... :P I just thought I'd point out OGL development is actually thriving, but it's code-base … | |
I actually have 2 Q's the files I'm working with only provide 4x3 inverse bind matrices for bones. what I first need is a function that writes the 4th row of the matrix and then I need to know PyOpenGL's matrix inversion function (since it's faster than my current function) … | |
just making a thread that will hopefully stick for a while... >_> I just need a little help and need to know a few things before starting on this... the main thing being the need to know how to build a good update system >_> my program will have a … | |
this just started happening w/in the hour, so I'm kinda still alittle in panic mode... but upon boot up my compy will randomly freeze anywhere from the bios screen to the desktop I think there may be a static leak somewhere, but I'm looking for other possible options... IK a … | |
anyone mind lending a hand :/ basically, what I have is a code containing 2 iframes inside a div. what I'd like to do is refresh one of the iframes when it's page recieves an update from another user. perhapse I could load the page on the document load, and … | |
this is just a little project I'm working on for my converter I'll be asking for C++ to Py conversion since IDK C++ well enough to do it myself... but the project involves converting the current functions as well as writing opposite functions... (since the SDK only worries about writing … | |
I'm currently working in another thread to find a better conversion method here's my script: [code] #!BPY """ Name: 'Brawl (.mdl0)...' Blender: 248 Group: 'Import' Tooltip: 'Import a Brawl model file (.mdl0)' """ __author__= ['Tcll'] __url__ = ("") __version__= '0.015' __bpydoc__= '''\ mdl0 Importer ''' # ***** BEGIN GPL LICENSE … | |
ok for one... I must say I'm a noob at classes, but have made some pretty good apps using nothing but functions. I'd like to get into classes though, and every time I try, I end up misunderstanding 1 or 2 things and messing the whole thing up... <:\ can … | |
does anyone have any note on rewriting C/C++ programs in Python?? google and bing give me the exact opposite, and I've got a headache from searching... please note that I can't read C++ if you need the program I'm rewriting, please let me know | |
I'm currently working on a 3D model previewer for another program of mine... I've currently gotten it drawing the verticies and zooming... when zooming, it basically redraws the scene... I've currently got it redrawing using a for loop (clearing the scene before it redraws) this method is a bit slow, … | |
so I'm using the 'initialfile' to automatically generate the name of the import file, but I'm using 'defaultextension' to set the extension when clicking 'Save' how do I set the 'defaultextension' based on the current filter selection?? | |
hey... I've been working on my first GUI for a while now, and I just need some input on it... first off... the image object won't work for tex0-type formatting... so I have to make each pixel from the data provided... I've gotten as far as reading the 32 byte … | |
KK so I have 2 py files... 1 being the main, and the other, the plugin I have a list var in the main, that I'd like to append data to from the plugin how do I do it?? the data to append: (from plugin) ' ('template', '*.tmp') ' the … | |
here's a little test I want to do: in the main html I simply want a text input, and a submit button... when I type something in the input and click 'submit', it calls a function that generates an html with: [CODE] <html> <head><title>JS Generated HTML</title></head> <body> //(text in input) … | |
hello, I'm having a problem with my cpu which involves the Realtek HD Audio manager. when I logon to my account, I get no audio, but when I logon to a differant account, it works perfectly... anyone know how to fix off-hand :/ I'm looking into this myself, but I'm … | |
ok... so I've decided to start work on a model converter... I'm a lousy Py programmeer and I'm trying to understand a few things... but first off: I want to store vert XYZ data in 'verts' as a list... say we have 3 verts, the var would look like this: … | |
I'd like to know how to write a downloads counter that changes a var in an external .js file?? the var is named after the id of the textbox that displays the number held within that var... eg: external file:[CODE]var txtbx = 0[/CODE] html:[CODE] <script type="text/javascript"> count() //writes the increased … | |
hey... I know this is real easy to do and all... but I just can't remember how to do it... I have a textarea named 'code' and a completely empty div [CODE] <div> </div> [/CODE] the textbox get's filled with html code... (dynamically of course) and now I need to … | |
I need help counting the number of times a particular number is used in a text file... and to output a number of results to a text file... eg: [B](input.txt):[/B] 01 40 39 01 72 39 36 56 72 82 39 ### 56 62 38 03 03 06 38 30 … | |
if anyone can help save me a ton of work, as I'm an amature to js... I need a brstm audio player that can be pasted onto a page (blog) I'm kinda hoping for something simple to where you can just post a dl link above it and click play. … | |
I'd like to know how to program a hex editor in python, using just tk with the main installation. (no add ons like wx or any others) if anyone can help, this would be gladly appreciated. I'm not really "good" at python yet, so please try to be detailed. (not … | |
as well as my last thread (hex editor) I need help knowing how to program a 3d model viewer that reads obj format, and supports texturing... unlike the hex editor, I have some code if you want to play around with it... you must set everything manually before you run … | |
Re: thanx.. :) that just helped me out with a part on one of my projects | |
Re: my cpu has a prob with booting, it gets past the win xp loading screen but when win xp fades in (before it gets to the account logon screen), it freezes. the last thing I remember doing was installing VB6 for a project I was working on, but after it … |
The End.