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
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
>
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
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 =
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
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
6 matches
Mail list logo