PDA

View Full Version : CSV to camera



Toni
10-18-2016, 05:58 AM
Hi all,

I received for the first time a CSV file, It contains the information of a camera, X, Y, Z, rotation and zoom.
I have seen that there is a script that passes the CSV to XYZ, but has no rotation or zoom.
https://www.lightwave3d.com/assets/plugins/entry/import-csv/

Anyone know if there is a similar script but with zoom and rotation parameters?

Or some other way?

Thanks

vncnt
10-18-2016, 07:12 AM
Hi all,

I received for the first time a CSV file, It contains the information of a camera, X, Y, Z, rotation and zoom.
I have seen that there is a script that passes the CSV to XYZ, but has no rotation or zoom.
https://www.lightwave3d.com/assets/plugins/entry/import-csv/

Anyone know if there is a similar script but with zoom and rotation parameters?

Or some other way?

Thanks
You could simply import the CSV file into a spreadsheet and modify parameters formats before exporting.

Toni
10-18-2016, 08:06 AM
You could simply import the CSV file into a spreadsheet and modify parameters formats before exporting.

The problem is that I need to import all these parameters to a Lightwave camera, Time, Position, Rotation and Zoom. And don't know how. Srry if it wasn't well explained.

MonroePoteet
10-18-2016, 08:23 AM
Looking at the Mike Green LScript you referenced, I *think* it's fairly simple to modify it to import X,Y,Z,H,P,B,Zoom by doing the following:

1) The X,Y,Z,Heading, Pitch and Bank channels are automatically in the Camera's "channel bin" (i.e. accessible), but you need to press the "E" button on the Zoom factor (or Lens Focal Length) to add a Channel for manipulating Zoom.
2) Edit the LScript (using Notepad or some other text editor) to change the line "while(i<=3)" to be "while(i<=7)"

The basic operation of the script is to take each input line, use the parse() to break it down by commas, then parse the time into minutes and seconds with a colon (":") separator. The mybits[] array holds each comma-separated value. The loop "while(i<=7)" uses next_channel() to access each subsequent channel in channel-bin order (X,Y,Z,H,P,B,Zoom) and create a key in that channel with the comma-separated values.

Good luck!
mTp

Toni
10-19-2016, 01:49 AM
MonroePoteet, thanks a lot, I'm not good with scripts, but with your guidelines it Worked!

Thanks a lot!

Sensei
10-19-2016, 10:31 AM
Check my video tutorial
https://www.youtube.com/watch?v=EjD5_dusXSg
"TrueArt LightWave 3D PlugIn CSV Reader Full HD video tutorial"

And download plugins from http://www.trueart.eu

It could be used with any kind of data in CSV,
not just XYZ or rotation.
In video tutorial I am changing color.

spherical
10-20-2016, 11:04 PM
These two solutions are really cool and are what make this forum community great. Learned something new today, and that makes this a Good Day!

Toni
11-02-2016, 07:18 AM
Thanks all of you for your time! I'll take a look to that plugin Sensei.