Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
R: Scripted operators with N input connections

R: Scripted operators with N input connections

2005-04-24       - By brad

 Back
Reply:     1     2     3     4  

Depending on which channels you want to affect, you can try to access and set
them by populating an empty collection:

// Create empty collection
var coll = new ActiveXObject('XSI.Collection');

// Populate collection with parameters based on condition
if(x == true){
   coll.items = 'objA*.visibility.viewvis';
}
if(x == false){
   coll.items = 'objB*.visibility.viewvis';
}

// Set values of items in collection
for(var e = new Enumerator(coll); !e.atEnd(); e.moveNext()){
   var param = e.item();
   param.value = true;
}

NOTE: Be very careful with this technique as it's bypassing the direct channels
input of the scripted op. If you are getting and setting kinematics properties,
it can slow performance, lead to cyclic dependencies, or cause unpredictable
kinematic behavior.

As Graham said, it's not as flexible in this area as one would hope.

-Brad

-- ----Original Message-- ----
>  Tags or parameter collections? I can't understand... maybe I've explained
the problem not so well.
>
>  What I need to do is to create a scripted operator that can accept, as a
connection set, N objects (like some curve/surface operators do).
>  Also, objects can be added or removed from this group of objects without
making the operator disappear, like what I can do with the inputs curves of the
surface loft generation operator.
>
>  Thanks.
>
>  Michele
>
>  -- --Messaggio originale-- --
>  DA: owner-xsi@(protected)   [mailto:owner-xsi@(protected)] PER CONTO DI
Robert   Moodie
>  INVIATO: gioved� 21 aprile 2005 16.17
>  A:   XSI@(protected)
>  OGGETTO: Re: Scripted operators with N input   connections
>
>  Michele
>
>  Could you use tags and parameter   collections?
>  Not sure if it is what you want, but I'm   interested in the outcome...
>
>  _rob
>
>  -- -- Original Message -- --
>  FROM:     Michele
>  TO: xsi@(protected)
>  SENT: Thursday, April 21, 2005 5:57     AM
>  SUBJECT: Scripted operators with N     input connections
>
>  Hi, I need to     plug a number of input objects into a scripted operator;
the     number of these objects can be increased or decreased.
>
>  I've tried doing     this with a group, but I cannot access its members via
the .members property     via scops.
>
>  Maybe someone     already did something like this before and could help me.
>
>  Thanks
>
>  Michele
>  motionblur@(protected)
-- ----Original Message-- ----

---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi