Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography



Maxunderground news unavailable

 
First page  Go to the previous page   [01]  [02]  Go to the next page  Last page
 
Maxscript is so difficult!
show user profile  Mr_Stabby
I tried being cool and searching for it in google but my efforts have failed. Im trying to create a new object modifier in maxscript but have no clue how to define it. Any halp? :o

read 970 times
12/27/2011 3:44:34 AM (last edit: 12/27/2011 3:44:34 AM)
show user profile  Mr_Stabby
oh nm i did it!

plugin modifier ST1
name: "ST1"
classID:#(0x103672, 0x1)
(

)

useful stuff http://www.cgplusplus.com/online-reference/maxscript-reference/source/scripted_plugins.htm


read 964 times
12/27/2011 3:55:15 AM (last edit: 12/27/2011 3:55:15 AM)
show user profile  Mr_Stabby
ok stuck again, im trying to create a skin like interface where i can select verts and assign them weights.. all i found out so far is that maxscript documentation is absolute shit :|

read 949 times
12/27/2011 6:06:57 AM (last edit: 12/27/2011 6:06:57 AM)
show user profile  Garp
I totally agree about the doc. You need to know it almost by heart to find what you want.
If you're using max 2012 and their even shittier doc in html, I recommend downloading the chm from a previous version. At least it has a working searchbox for the index.

Modifiers in mxs are fairly limited. Either it's just a 'transformer' (like bend, twist, etc) or it only extends an existing one.
If you're a c++ coder, you could go the sdk route...

Btw, your link is the html version of mxs doc for max 9!




read 933 times
12/27/2011 8:00:59 AM (last edit: 12/27/2011 8:04:17 AM)
show user profile  Mr_Stabby
ok well i gave that a shot, installed the sdk, did the wizard integration, made empty plugin using the wizard and it wouldnt compile. for whatever reason even though the sdk doc specifies vs2010 which i have it compiles for vc90 which requires 2008 which is 200miles away. I changed the target to vs100 and now it starts to compile but is shooting out more errors than there are lines of the code... im just writing this as probably the last sane thing that i do because im about to go and start finding out wtf is wrong with it and will probably murder some people in the process.

EDIT: the utility plugin tutorial suggested i name my project "My Utility" which i did, hilariously enough it named a bunch of classes after it, including the spacebar which broke everything. It compiles now so the general population is safe.. for now.

read 922 times
12/27/2011 10:00:34 AM (last edit: 12/27/2011 10:20:20 AM)
show user profile  advance-software
you can compile plugins for max6 (probably even earlier) thru 2012 32 & 64 bit using vs2010 express.

just need it set up right.

never used the wizard. I always find sample code in the samples directory that's closest to what I want & work from that.

don't forget to generate a new class ID if you modify an existing plugin so it can be identified separately from the plugin you base yours on.
read 899 times
12/27/2011 1:50:32 PM (last edit: 12/27/2011 1:53:58 PM)
show user profile  Mr_Stabby
Ran into some more noob problems that i figured i'll share solutions for in case anyone else would want to go down this path.

the wizard creates plugins for 32bit max, to change it to 64 bit you have to a) flip the x64 switch (duh) b) fix the output and linker path to the same that they are in 32bit
I installed the 2012 sdk since it was the only one i had at hand but the max im using is 2011 - change the return on the version function to (((MAX_RELEASE_RXX)<<16)+(MAX_API_NUM_RXX0<<8)+MAX_SDK_REV); XX stand for the version of max, 14 is 2012 13 is 2011 etc. I have no idea about the implications of this other than that without this my plugin wont load, i guess you better not use functions introduced in later versions of max than you defined.

oh also yesterday i thought the load errors i was getting was because i compiled for cv100 as opposed to cv90, turned out that is not the case and it was the linker thing, cv100 works fine as far as i can tell

read 860 times
12/28/2011 7:36:16 AM (last edit: 12/28/2011 7:38:23 AM)
show user profile  advance-software
use the correct version of the sdk for the version of max you have & don't mess with its headers.

all it takes is one variable added to a class & alignment of everything else goes out the window.

2011 sdk available from 2011 install disks.


read 847 times
12/28/2011 12:40:09 PM (last edit: 12/28/2011 12:40:30 PM)
show user profile  Mr_Stabby
Well i just figured out how the whole UI system works, was quite a headache with the sdk reference not explaining any of the methods other than a vague name for each field.. To figure it out i traced pretty much every variable in the sample plugins to see wtf is going on, as a side effect the general structure of plugins became quite apparent well before i made sense of the param description class. It is a nice and clean system once you can see the order behind the madness, but the learning "curve" is more like a cliff guarded by a tribe of angry gorillas.. they really need to execute whoever wrote the sdk reference and hire somebody competent.

read 828 times
12/30/2011 3:55:11 PM (last edit: 12/30/2011 3:55:11 PM)
show user profile  Mr_Stabby
back to maxscript, im trying to script a modifier plugin for a spline since i figured maxscript could handle at least that but the documentation about it is as vague as usual (read: its fucking shit).

For one i cant figure out how to make param block ui changes to stick, i have a few pickboxes for nodes that change their caption according to what they have picked but every time i move away from the modifier ui (like select another object for a second) the ui reverts back like there is no objects selected (even though internally the params remain changed). Well tbh i dont really care about this one since its just visual. The bigger problem is that i cant seem to wire any object transform events to trigger a function in the modifier (i want if for example i move an object marked inside the plugin as a node it should update the plugin) because it wont allow me to add any callbacks or when statements and just keeps bitching about plugin clauses that dont exist. The only events that work are the ones defined by modifier plugin masterclass but funny thing is that there is no mention of what these events are in the documentation, nothing. wtf am i supposed to guess what they are? At this point i want to strangle the soab that came up with maxscript and its documentation, fuck.

read 776 times
1/6/2012 4:49:42 PM (last edit: 1/6/2012 4:49:42 PM)
show user profile  advance-software
go throw some fruit at traffic. it won't fix your code but it'll make you feel better.
read 770 times
1/6/2012 4:55:21 PM (last edit: 1/6/2012 5:00:53 PM)
show user profile  9krausec
So, I have some Java and AS3 knowledge... I have never touched maxscript before (mostly because it scares me)....

How close is the setup of maxscript to Java/AS3 (like AS3 and Java don't share the same syntax, but they are set up like OOP... is maxscript OOP?)




- Portfolio-




read 749 times
1/6/2012 5:40:59 PM (last edit: 1/6/2012 5:40:59 PM)
show user profile  Mr_Stabby
structurally i'd say its closest to vb6 as in not truly oo but close enough, syntax wise AS2 maybe.. its fairly unique in that regard. most of all i wouldnt really call it even a scripting language due to its severe limitations.. more like makeup language

read 745 times
1/6/2012 5:46:48 PM (last edit: 1/6/2012 5:46:48 PM)
show user profile  advance-software
it's a scripting language. no fan of the syntax either. would prefer something javascript like (which ascript is) then it'd integrate better with webgl, etc.

still, not so hard to port stuff between technologies when you need to.

re-your problem. boil it down to the absolute basic issue you're having difficulty with then post what you have. I can't help as I'm not a ms dev but maybe dub or garp can see what's up. failing that, other boards or autodesk.
read 735 times
1/6/2012 6:11:20 PM (last edit: 1/6/2012 6:15:29 PM)
show user profile  Mr_Stabby
well problem is i dont have anything lol, i have defined the params and the ui. Next up i figured ill just define an event to do x upon y but i cant because

x: i have no access to base node, there is no documentation on how to modify existing splines
y: i cant define events relating to anything but param block changes, not even timeline changes

i find this ridiculous as i have a working prototype i built using a spline and a few helpers with script in motion controllers and i figured i can make the same construct in a less messy and more direct way as a maxscript modifier on the spline but to hell with that hehe

read 716 times
1/6/2012 7:09:13 PM (last edit: 1/6/2012 7:09:13 PM)
 
First page  Go to the previous page   [01]  [02]  Go to the next page  Last page
 
#Maxforums IRC
Open chat window


Support Maxforums.org