• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Maxscript Help

Status
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:

Code:
	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"
			--)
		)
		else
		(
			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:
Status
Not open for further replies.
Top