[Closed] Bobo's Maxscript Lessons
Hey Bobo if you’re reading this I want to thank you for your great tutorials. I’m starting to learn maxscript from these lessons.
Anyways I got stuck on Lesson 4 and 5. I reviewed and copied the code but couldn’t find how to have vertex colors properly assigned to the mesh made from the “m” bitmap. Everytime the color is different and strange, like half pink and black, then a few lines of pink and black etc. And in lesson 5, the code sometimes runs, but the animation doesn’t record for objects or mesh.
I’m very much a beginner, so any pointers will help.
A wild guess: maybe Max 4 doesn’t work well with the code version.
Here’s the Listener Output from the sample script Bobo provided
note-At first the status bar ran, then a popup said “no “>” defined”, then the boxes were created with correct color but no anim. :
– Error occurred in start_process()
– Frame:
– num_frames: undefined
– mesh_cpv: #()
– bmp_w: 320
– vert_color: undefined
– new_material: undefined
– nodes_array: #($Box:5th_Lesson01 @ [100.000000,-100.000000,0.000000], $Box:5th_Lesson02 @ [500.000000,-100.000000,0.000000], $Box:5th_Lesson03 @ [900.000000,-100.000000,0.000000], $Box:5th_Lesson04 @ [1300.000000,-100.000000,0.000000], $Box:5th_Lesson05 @ [1700.000000,-100.000000,0.000000], $Box:5th_Lesson06 @ [2100.000000,-100.000000,0.000000], $Box:5th_Lesson07 @ [2500.000000,-100.000000,0.000000], $Box:5th_Lesson08 @ [2900.000000,-100.000000,0.000000], $Box:5th_Lesson09 @ [3300.000000,-100.000000,0.000000], $Box:5th_Lesson10 @ [3700.000000,-100.000000,0.000000], $Box:5th_Lesson11 @ [4100.000000,-100.000000,0.000000], $Box:5th_Lesson12 @ [4500.000000,-100.000000,0.000000], $Box:5th_Lesson13 @ [4900.000000,-100.000000,0.000000], $Box:5th_Lesson14 @ [5300.000000,-100.000000,0.000000], $Box:5th_Lesson15 @ [5700.000000,-100.000000,0.000000], $Box:5th_Lesson16 @ [6100.000000,-100.000000,0.000000], $Box:5th_Lesson17 @ [6500.000000,-100.000000,0.000000], $Box:5th_Lesson18 @ [6900.000000,-100.000000,0.000000], $Box:5th_Lesson19 @ [7300.000000,-100.000000,0.000000], $Box:5th_Lesson20 @ [7700.000000,-100.000000,0.000000], …)
– mesh_verts: #()
– normal_mod: undefined
– work_bmp: BitMap:C:\MXSTUT\MultitargetIK.avi
– bmp_h: 240
– new_object: undefined
Originally posted by gopherCG
[B]Hey Bobo if you’re reading this I want to thank you for your great tutorials. I’m starting to learn maxscript from these lessons.Anyways I got stuck on Lesson 4 and 5. I reviewed and copied the code but couldn’t find how to have vertex colors properly assigned to the mesh made from the “m” bitmap. Everytime the color is different and strange, like half pink and black, then a few lines of pink and black etc. And in lesson 5, the code sometimes runs, but the animation doesn’t record for objects or mesh.
[/B]
Hi,
Well, those tuts was written for MAX 2.5, so things might have changed alot since then. I will try to find some time and review the code to see if there are any problems – implicit variable scope changed in R3 from global to local and made some scripts incompatible. Defining variables explicitly as local and global usually helps fix the problems…
Cheers,
Bobo
Hi ppl, I made the animation work for boxes and spheres. Vertex color seems alright sometimes. I’m now troubled by how to animate vertices (the manual was difficult there):
I got a Handler Exception: – Runtime Error: Cannot directly set animatable property: Master Point Controller.
Do you have a sample code?