Hi Paul,
I have managed to get .csv exporting working -- it's not ideal though. Also that little python snippet I wrote doesn't account for all things (transformation wise) just location. I have been using the snippet below to organise csv files properly in my python export script.
The conversion from YUP to Z is a changebasis tranformation:
(1,0,0),(0,1,0),(0,0,1) TO (1,0,0),(0,0,1),(0,-1,0)
It can be neatly wrapped in a python function using the rhinoscriptsyntax to transform a normal transformation to something that octane can read:
Code: Select all
def XFormFlipYZ(xfm):
flp = rs.XformChangeBasis2((1,0,0),(0,1,0),(0,0,1),(1,0,0),(0,0,1),(0,-1,0))
return(flp * xfm)
However I'm sure googling changebasis transformations would offer the pure mathematical matrix solution, if that's desired.
Regarding blocks scaling proxies - that would be perfect! Just need that and a 'replace all' - where all the selected blocks get replaced by proxies.
----
On a similar note, there's a strangeness to using .csv files to scatter proxies - since they have to be linked to a block with proxy assignment, the coordinate system is thrown off if the block is not at 0,0,0 (as the coordinates seem linked to the block location). If the changes mentioned above aren't made (as they would more or less remove the need for scatter files altogether) it would be good to have a way to reference a .csv and reference block without actually having it in the scene - ie. just through Octane for Rhino's tabs - this would greatly ease the workflow for scatters.
----
On another note, I found that using the command line arguments for octane allowed for camera motion blur, which was a great effect. Is there any way to implement this? Seems like it might be difficult..
I hope the changebasis transformation might enable you to develop the scatters a bit more!
Newske
Edit:
The rhino common is Rhino.Geometry.Transform.ChangeBasis(x0,y0,z0,x1,y1,z1) which may be more useful to you
Octane for Rhino | Windows 8.1 x64 | i7-3820 OC | GTX970 4GB OC & GTX 560 Ti 1GB OC | 32GB DDR3