Jump to content

Data driven animation


mjL

Recommended Posts

Hey guys,

 

I'm trying to look for references of animations driven with external data like .xls documents (or any other data files) for example and I'm not having much luck finding anything.

 

If anyone could point me in the direction of any papers, videos, example files or references it would be really helpful, thank you.

Link to comment
Share on other sites

Thanks for the help guys, my python knowledge is very poor so I'll be careful of getting into any methods that I can't problem solve at this time. Although this is a good reason to push myself I suppose...

Link to comment
Share on other sites

I just checked it out, that's a sweet node. Ironically they used Python and the csv module that I linked to above.  :D

import csv
# Fetch our node's parameters.
fname = node.parm('file').eval()
usemaxrows = node.parm('usemaxrows').eval()
maxrows = node.parm('maxrows').eval()
nattrib = node.parm('numattrib').eval()

csvfile = open(fname)

sample = csvfile.read(4096)
dialect = csv.Sniffer().sniff(sample)
has_header = csv.Sniffer().has_header(sample)

csvfile.seek(0)
reader = csv.reader(csvfile, dialect)
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

Does anyone have any working sample CSV files they can share?

 

I'm looking to import some flight tracking data, but I am not sure how to format the CSV files correctly for use with the Table Import?

 

Id like to also use the lat / long to sphere function but should they be one column in the CSV? I set the column to 6 because in my file that is the start of the lat/long but the results are still looking odd.

 

attached is my .csv, but had to change to .txt to upload.

 

 

 

 

Data00_019.txt

post-5696-0-37099600-1430145744_thumb.pn

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...