Hi all,
This begins with a question, which could end up as a suggestion if there’s no suitable way to achieve it…
I’m putting together an animation in Enscape which requires hundreds of animated people (just greyed out/semi transparent) and obviously Enscape doesn’t do this. It’s something that I could quickly and easily achieve in 3DS max which begs the question; can I export the Enscape camera paths in such a way that I can import them into max? The alternative for me at the moment is having to track the enscape footage (uuggghhhhhhh!!!) which is something I really, really do not want to do.
Is the current camera path export format a proprietary one? Or is it based on fbx and possible to import in max? i.e. a simple change of file extension?
If this isn’t possible; what is the likelihood of you guys implementing a camera path export that is compatible with other software?
Kind regards,
Chris
Hey @Macker202 , thank you for your feedback!
I see in your other thread that you seem to have answered your questions yourself - good job! You’ve probably noticed that the format is a proprietary, very simple one.
I have filed your request for an export function, though!
Forwarded your feedback as well; thanks! 
Hi,
so I’ve done some researcher another user(Macker) on the forum had it so they could import the camera path from Enscape’s xml file exporter to 3dsMax but they never posted the solution.
I wrote a script in 3dsMax that takes a camera and morphs it between multiple positions and targets. This script works but when it brings in the XML positions and targets(lookat) it does not create a camera path like the one in Enscape. I know that the morph camera is going through all of the correct points in 3dsmax that correlate with the xml file as it prints the data correctly but the visual output is not the same. I had to flip the y/z coordinates and scaled my scene by 1000 which seemed to get somewhat of a similar camera orientation but generally it was not correct. [
](https://forum.enscape3d.com/wcf/index.php?attachment/23855-1-jpg/)
I know that several people have asked about this, could there be a bug in the xml exporter? Also the other user who did this mentioned FOV i don’t have those settings saved in the XML export file. Any help would be much appreciated. In the mean time I will try to generate an XML from 3ds Max and feed that into enscape.
Thanks
going pick up on this point alone*
you only get FOV values in your xml export when it’s been manually set on a keyframe (see line 16 below) - otherwise the export runs “blank” to read off of the active view settings (which can lead to interesting/undesired results if you forget to switch from a wide lens if you set your path up with a tele lens)
similarly, timestamp, time of day and DOF all (only) export per keyframe where they’ve been editted - and follow this convention per line:
*my own studies are still ongoing and I’ve been meaning to post a “findings” thread to expand on what I’ve been finding/attempting/doing w/ Dynamo - until then, anyone interested might want to read some musings over at RFo
ah excellent thank you will give this a go
I have visualized the Position data in 3D software and can see that it creates a path as expected.
I want to visualize the LookAt path, but the data is creating a cluster near the center of the Position visualization. This would mean my video is “locked” onto the center of the model as i walk around, which is not the case. The video looks left, right, up depending on where it is. I would expect the LookAt point to be consistently outside of the bounds of the walking path, not stuck in the center. Is the LookAt a vector instead of a point maybe?
the LookAt property is a normalised, non-dimensional, vector, so “visualised” it will always revert/default to a localised mess - you (will) need to transpose its xyzl to real-world values if you wish to visualise/illustrate them
EDIT
PS: to elaborate on the above, I build my (enscape .xml) paths in the reverse manner, as in, I start with “real” world point-to-point (camera to target) values, then extract/get/calculate the LookAt xyz values afterwards, so the reverse-engineering of such isn’t beyond the realms of possible, just know there’s a YZ inversion in Enscape-Revit space (never done this with Rhino, Ketchup or others, alas) to accomodate for
I was able to transpose the LookAt data onto my keyframe locations, but I have a conundrum. When the path folds back on itself, sometimes the keyframe is not “closest point on curve” because it’s not the right section of line its testing against. I’m not finding a good way to overcome that, do you have any ideas?
I wish I could just use Enscape’s raw data stream and I wouldn’t even have to jump through all these hoops of rebuilding the path.
hard to visualise what you mean, do you mean you’re getting kinks/pinches (because of how splines tend to want to “close”) or something else?
In this example, the end of my path overlaps with the beginning. So, circled in blue, some of my vectors have “jumped the track” because the wrong spline is actually closer to the reported Enscape keyframe point.
Now that I’m typing this, maybe rebuilding those points as a NURBS is not a valid operation. NURBS uses control points with weights, meaning they are never “on the track”, but Enscape builds their spline to hit exact points. I think I would have better luck finding a spline type that passes through points instead of interpolates the weights of points.
if I’m still following
yeah, kinda what I thought, unclosed splines. grrr.
I tend to resolve this by re-making them anew through a few steps
First I’ll drop a ton of points at segment lengths (spline curve length/divided by arbitary large number, or sometimes by a movement speed calculation) - but essentially ALWAYS more than seems necessary - which result in the smaller red circles here:
I’ll then drop the last point, and rebuild a polycurve through the points remaining (with first point repeated at the end) to ensure I get a closed polycurve closes.
then I repeat the dropping of points (at segment length) on that new polycurve - resulting in a "perfect"ly paced smooth start-to-end loop (of keyfame positions placed at the green circles)
Just bear in mind, remaking the new (polycurve) path will appear to introduce undesirable faceting (when visualised*)
but this can be mitigated (somewhat) by pumping up the quantity of points - just bear that in mind if your path flies unforgiveably close to stuff in your scene.
*the “good” thing about Enscape’s video paths is that they will “rebuild” as a smooth spline through these in the end anyway
EDIT amazing this forum doesn’t allow the upload of videos ||
I think we are on slightly different pages.
So here’s my fully rebuilt building path using “Interpolate Curve” instead of “NURBS” because it actually goes through my points.
The areas in red are the only ones that I’m confident seem pretty close to correct. The blue areas "fold in on themselves and mix up the vectors and tracks.
Part of why I can’t circle more in red is I am approximating the Timestamp by dividing the line by lengths. If I could access Enscape Timestamp for every point, I wouldn’t have to approximate like this.
I don’t necessarily want to launch Enscape and open the path then check Timestamp on all 96 keyframes just to get them exported in the xml file.
yeah almost certainly! :S
so the arrows are your (96?) keyframes, from the enscape xml? with the arrow tail the PositionAt? that you’re tracing the red-line through?
And the arrow directions are (or are meant to be) illustrating the direction your keyframe is pointed?
Q. did you account for Y being inverted (and also Z) in both the Position & LookAt properties?
beyond that, I’m confused (as to what’s going on, or what you’re doing), sorry.
Yes, and their direction is built from the LookAt data.
Something you said triggered me to reroute my script differently and now I’m confident the LookAt data and Position data are correlated correctly.
My goal is to rewrite the Timestamp data manually into the .xml for each point while giving it an algorithm for time scaling. I’m not 100% sure it will work, but if it does, it should help in the future when setting up paths.
it will, just remember the hour & timestampSeconds values are decimal time.
Anyone reading this in the future… using GHowl for Grasshopper to deconstruct the xml file into it’s raw data makes it 1000x harder to put back together than just keeping the xml as a large text file and selectively replacing.
Anyways, I was able to import a modified xml file into Enscape, but still testing the actual algorithm before I report that it works well.
Interesting.
I don’t Rhino/Grasshopper (having never needed to) but your struggles kinda make me want to takea look “from that perspective” - given it’s (relatively) easy (to hack about text-based formats) with Dynamo.