Method to apply operator? 2004-02-15 - By Bernard Lebel
Back Thanks for the advice.
But I've messing around for an hour now and for the life of me I can't seem to make it work. I hoped for a simple solution but it doesn't look like so.
Basically I have created a 2-point curve, and want to cluster center constraint each points to a spot and its interest.
// Note: oInt is light interest
// Get point of curve var oPt1 = oCurve.activeprimitive.geometry.points[0];
// Apply Cluster Center deform operator applyoperator( "ClusterCenter", "oPt1;oInt", 3 );
When I run this, it says that argument 1 ( "oPt1;oInt" ) is invalid. I'm under the impression that I need to create the clusters before running the command (as you said), but again, reading through the docs I have a hard time even creating a point cluster!
Sorry this is the first time I script these things, I'm a bit lost....
Thanks Bernard
-- -- Original Message -- -- From: "Jaco" <raffaele.fragapane@(protected)> To: <XSI@(protected)> Sent: Sunday, February 15, 2004 5:05 PM Subject: RE: [Script] Method to apply operator?
> if you mean doing it all by the object model rather then relying on > command just create a function that will: > > A) create a cluster > B) find the averaged center of the subelements cluster > C) puts a null there > D) creates a constrain to that null > > I always did it this way (I have my little helper lib where i stuffed a > few of these repetitive tasks). > I don't think XSI has a separathe method from addcluster to create one > with a center, it prolly just does what I wrote above under the hood, > would love to stand corrected tho if I missed on something. --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|