Notifications
Clear all

[Closed] CgTalk Maxscript Challenge 017: "Project Management"

 rdg

oops – I missed that one

The Python Stuff sounds interesting.
Where Is the PythonMSX discussion? I think I missed it, too …

We’re all waiting for specxor to make it, since he’s the most accessable authority on the subject at present!

No pressure of course.

 PEN

Funny seeing this thread, I just started a new system for a company that covers just about all the features that were mentioned for the challenge. I can’t share if how ever but it will be interesting to see what others come up with.

I’m currently not using any thing other then MXS but I have used Perl in the past. Personaly I didn’t like Perl at all, I don’t know what it was about it but I just didn’t get along with it. Python looks like a good language from just the glancing over it that I have done and I would love to see a thread on it how others are working with python and MXS.

2 Replies
(@thatoneguy)
Joined: 11 months ago

Posts: 0

The curse of this challenge. Everybody who is currently working on Pipeline stuff can’t share it. Hehe should have called it Maxscript Challenge 017: Who has the fortitude to not share their proprietary company assets?

Speaking of which I’m still waiting for someone to make some badass database driven tools for Max. http://forums.cgsociety.org/showthread.php?f=98&t=384588 … now chop chop, get to work. I expect awesome database driven project management tools.

(@lechoo)
Joined: 11 months ago

Posts: 0

He he, it’s just my case

Hi Guys,

I have posted a really simple example here http://forums.cgsociety.org/showthread.php?p=4466107#post4466107 I will post more soon,

Cheers
Dave

Due to crazy end of financial year business, I’m going to extend the challenge another week. This one seems to be intriguing people. I’ll be able to put up my own meagre tools next week sometime (if my manager approves it!).

Wow… This challenge is just like work… oh it IS work…

I’am using VB dotNet for external apps, but I’d like to see the python thread as well. I’ve not used it much. The great part about dotNet stuff, is you can almost paste the code from it into maxScript now…

Yeah I totally aggree with the NDA stuff… I would love to show the world some of the stuff were doing

I am also a very dig fan of dotnet inside of max now… Although I must admit my own experience with it is limited to XML and some db stuff.

I would love to here what you guys think is the best way to talk to db from with in max, I have only tried using dotnet to do it wich worked well, although they were only simple tests… Ill try and dig up my code and post for those who are interested. I recall getting a simpple MySql conection working with a version control script I had written a while ago.

Very excited to see were this thread goes Im working on a little script that could be cool (If it gets done!).

Cheers
Dave

I will add more python code soooon!

 PEN

I would love to see the code that you are using to read a data base with MXS. This is exactly what I’m looking for.

Also, Python or VB…this will cause a stir…which is the better choice? Is one easier to impliment into a pipeline then the other? Is one more robust then the others. I gather that Python doesn’t deal with .net so you have to use IronPython, if VB does is this an advantage?

1 Reply
(@specxor)
Joined: 11 months ago

Posts: 0

Hi, Paul,

I can not for the life of me find that script I wrote (some were in the abyss that is my projects folder). I do recall how it worked though, I create a simple python class that would connect to the database on init, I then made it available to max through com. I have a simple Python Class that is published with Com, if I get time this week ill re-write it.


#A simple Python COM server, as simple as it gets.
class PythonComClass:
    _public_methods_ = [ 'SplitString','SomethingElse' ]
    _reg_progid_ = "PythonDemos.Utilities"
    #Make sure you generate a new Class ID, use pythoncom.CreateGuid()
    _reg_clsid_ = "{41E24E95-D45A-11D2-852C-204C4F4F5020}"
    
    def SplitString(self, val, item=None):
        """Splits a string"""
        import string
        if item != None: item = str(item)
        return string.split(str(val), item)
    def SomethingElse(self):
        """Some other method"""    
        return "Something Else"
    def __PrivateMethod(self):
        return "This is a private method"



#Make sure this module has not been imported. Register COM server
if __name__=='__main__':
    print "Registering COM server..."
    import win32com.server.register
    win32com.server.register.UseCommandLine(PythonComClass)

Let me no how you go, if you get stuck just let me no.

Cheers
Dave

Update: I’ve just found out i’m also not allowed to show my work tools. Dang it. :argh:

But this has been a really interesting discussion! I’ll be happy to see any stuff people have been able to write outside of NDAs.

 PEN

Dave thanks for the example. I will be digging into that soon and I will let you know how it goes.

As for sharing I will certainly share the directions that I have gone and maybe even UI’s but I can’t really share all the code. Great thread how ever and I hope that it keeps going.

Page 2 / 3