Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Export ExposeTransformHelper data as Excel or csv?

1 REPLY 1
Reply
Message 1 of 2
pcrawley
384 Views, 1 Reply

Export ExposeTransformHelper data as Excel or csv?

This is just a re-post of a question I probably should have put here in the first place.

I have an "ExposeTransformHelper" in a scene that's capturing exactly the data I want - but I need that data in Excel or csv format.

 

I've been scratching around in max script, but my skills just aren't up to the job.  Any ideas anyone - please? 

Peter
1 REPLY 1
Message 2 of 2
Swordslayer
in reply to: pcrawley

It would help to say what is the data you want to save. For example for local position it could look like this:

 

(
	local startFrame = 0 
	local endFrame = 100
	local step = 1

	local obj = selection[1]

	if isKindOf obj ExposeTm do
	(
		local filename = getSaveFileName caption:"Output File" initialDir:"$export" \
			filename:"exposeTM.csv" types:"Comma-separated values(*.csv)|*.csv"
		local file = createFile filename

		for f = startFrame to endFrame by step do
			at time f format "%, %, %\n" obj.localPositionX obj.localpositionY obj.localPositionZ to:file

		close file
	)
)

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report