Since the AddProperty method takes the name of the preset file as an
argument, you can check them directly in the
"XSI_5.11/Data/DSPresets/Properties" folder.
They're probably listed somewhere else, though I'm not sure.
Frederic.
André Adam wrote:
Many thanks, that's it!
Btw, where in the SDK are we supposed to look up those property preset
variables? The AddProperty description only comes with two examples -
and that didn't help at all.
Thanks again, cheers!
-André
Frederic Valleur wrote:
Hi Andre,
did you try
oTorus.ActivePrimitive.Geometry.AddCluster(siSampledPointCluster).AddProperty("Vertex
Color",
false, "VC");
Seems to work here.
Cheers,
Frederic.
--
frederic valleur | r&d engineer (at) LaMaison
Thanks Guillaume, that's the command-based approach we currently use
as well (CreateVertexColorSupport()), but I thought there should be
a way through the object model as well. Basically I don't get why my
code snippet below does not create a vertexcolor type property...
However, thanks again!
-André
guillaume laforge wrote:
Hi Andre,
I used vertex color in this script :
http://www.vol2nuit.fr/guillaume/xsi_scripts/rendering/scripts/RGB_MixerShader.js
<http://www.vol2nuit.fr/guillaume/xsi_scripts/rendering/scripts/RGB_MixerShader.js>
Take a look at the "PaintCluster" function, maybe it will help.
Cheers
--
Guillaume Laforge
freelance TD | cg Artist
my blog ! http://vol2blog.blogspot.com/
<http://vol2blog.blogspot.com/>
On 11/20/06, *André Adam* <a_adam(at)49games.de
<mailto:a_adam(at)49games.de>> wrote:
Hi!
What is the magic behind the creation of a simple vertex color
property
through the object model? If created through the UI, the type of
the vc
property returns "vertexcolor", as expected. When executing the
following piece of object model code, the type is "clscolor",
and the
property is plain empty and not recognised as a vertex color
property:
-----
var oTorus = ActiveSceneRoot.AddGeometry("Torus", "MeshSurface");
var oVC =
oTorus.ActivePrimitive.Geometry.AddCluster(siSampledPointCluster).AddProperty("ColorAtVertices",
false, "VC");
LogMessage(oVC.Type);
-----
I can see that an operator gets attached to the vc property when
created
through the UI, but I can't seem to recreate that process
manually...
Any little piece of insight is highly appreciated, cheers!
-André
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi