• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Maxscript Help

Not open for further replies.
Hi everybody, how's life? See, I've been having some lil troubles on pathing an object property (in this case a superspray.Birth_Rate) into a function that checks if the property is animated, and if it is; it will write the keys in .mdl format.

here's the GodDamm funcxtion:

	fn OupPropertyAnim o s =
		if o.isAnimated then
			--k = o.keys
			--c = o.controller
			--if (classOf c) == Bezier_Float then
				--swrite ("\t" + s + " " + (c.keys.count as string) + " {\n\t\tBezier,\n")
				--at time k.time for k in c.keys do swrite ("\t\t" + ((k.time as integer / 5) as string) + \
					--": " + k.value + ",\n" +  "t\tInTan: " + k.intan + ",\n" + "t\tOutTan: " + k.outtan + ",\n")
			    --swrite "\t}\n"
			swrite (",\n\tstatic " + s + " " + (o as string) )

-- means comment in MaxScript, btw
The idea of the function is to take a max object's property and print it's value into mdl, but I always recieve an undocumented error

I'm making this function based on DeX functions. I'm making a tool that will be able to export ParticleEmitters1, which aren't supported by ArtTools.
Last edited:
Not open for further replies.