Re: Changed ICE Orientation attribute access from sdk?

2016-05-04 Thread Stephan Woermann
In c++ the structure can be single or it can be an array. Set the rotation in an emitter with a "random value" node, and it will be single, set it with a "randomize around value", it will be an array. Inside the "randomize around value" node, you will see that the point id is used to drive the id

Re: Changed ICE Orientation attribute access from sdk?

2016-05-03 Thread Fabricio Chamon
Yes, I am converting once per axis :) now shamed... thanks for the tip Cesar, I'll try storing everything once and massaging data later on. Em terça-feira, 3 de maio de 2016, Cesar Saez escreveu: > I hope you are not converting the array once per axis like in the snippet >

Re: Changed ICE Orientation attribute access from sdk?

2016-05-03 Thread Cesar Saez
I hope you are not converting the array once per axis like in the snippet :) It's way better to get all the data in one call and manage the data re-shuffling on your own (i.e. python/jscript/vbscript/whatwever native types), Softimage's calls are relatively expensive as there's a round trip

Re: Changed ICE Orientation attribute access from sdk?

2016-05-03 Thread Fabricio Chamon
found it. pIndex = 0; rotation x = pointcloud.ActivePrimitive.GetICEAttributeFromName(" Orientation").DataArray.toArray()[pIndex].RotX rotation y = pointcloud.ActivePrimitive.GetICEAttributeFromName(" Orientation").DataArray.toArray()[pIndex].RotY rotation z =

Re: Changed ICE Orientation attribute access from sdk?

2016-05-03 Thread Fabricio Chamon
sorry or the confusion..StructureType being 1 is correct as the context is per point(particle). But suddenly pointcloud.ActivePrimitive. GetICEAttributeFromName("Orientation").DataArray.toArray() is giving me a type mismatch error when it previously worked. 2016-05-02 18:43 GMT-03:00 Fabricio

Changed ICE Orientation attribute access from sdk?

2016-05-02 Thread Fabricio Chamon
hey gang, in Soft 2014 I had this line of .js code: pointcloud.ActivePrimitive.GetICEAttributeFromName("Orientation").StructureType that returned -> 2 (*siICENodeStructureArray*) now in Soft 2015 it returns-> 1 (*siICENodeStructureSingle*) any hints? How may I access the particles orientation