Q100240: Collection does not match the intended locations

Follow

SYMPTOMS

Sometimes, a collection may not be triggering the execution of the intended Op at the locations that it is expected to match.

Collections are used to store CEL statements. The collection can then be used as a CEL statement in a node, and the operation performed in that node will be applied to any CEL statements stored in the collection.

Additional information on creating collections and using CEL can be found in the Katana Online Help under:

http://help.thefoundry.co.uk/katana/Default.html#rg/3d_nodes/collectioncreate.html

http://help.thefoundry.co.uk/katana/Default.html#ug/collections_cel/collections_cel.html

 

CAUSE

In Katana 2.0 versions onward, collections can be placed at any location in the scene graph whereas before 2.0, they could only be placed at root.

The CEL statements the collection collects are relative to the location of the collection.

For example, if the collection is located at /root/world/geo, using the CEL statement /* will collect everything underneath /root/world/geo.

If, however, the CEL statement to collect is /root/world/geo with a collection at the same location, it will attempt to collect everything underneath /root/world/geo/root/world/geo, which likely doesn’t exist and will result in an unexpected output. 

 

RESOLUTION

When creating a collection, keep in mind that the CEL statement of the locations to collect is relative to the location of the collection itself. As such, please set the collection location and CEL statement appropriately so that the result may match an existing scene graph location, otherwise, the match operation could fail. 

Was this article helpful?
0 out of 0 found this helpful