Updating path to ass file in nested procedural with string replace

Updating path to ass file in nested procedural with string replace

hollierthomas
Explorer Explorer
479 Views
0 Replies
Message 1 of 1

Updating path to ass file in nested procedural with string replace

hollierthomas
Explorer
Explorer

Hi,

 

I have a "house" ass file loaded in my main "town" maya file. The "house" ass file is built out of a bunch of different procedural loading "wall" and "roof" ass files.

I am looking at my town and I want to switch which roof procedural is being loaded by one of my house procedural. Basically I want to update the path of a nested procedural.

 

town.ma

        -> aiStandin loads house.ass

                                                       -> aiStandin loads wallType01.ass

                                                       -> aiStandin loads wallType07.ass

                                                       -> aiStandin loads wallType02.ass

                                                       -> aiStandin loads wallType04.ass

                                                       -> aiStandin loads roofType02.ass  (I want to change this from the town scope)

 

I've successfully updated the path of the roof being loaded with an aiStandin in my "town" scope, confirming that I have my aiStringReplace setup correctly for swapping the roof ass file. I've also successfully turned off the roof I want to change inside the house archive using an aiDisable, confirming that my selection targets the correct node inside the house procedural from the town scope. I just can't get the aiStringReplace to work in the nested situation.

 

And of course, the obvious question: why can't I simply use a aiSetParameter rather than an aiStringReplace?

 

 

0 Likes
480 Views
0 Replies
Replies (0)