Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

how to affect xgen expression for a specific index archive?

how to affect xgen expression for a specific index archive?

Anonymous
Not applicable
1,604 Views
3 Replies
Message 1 of 4

how to affect xgen expression for a specific index archive?

Anonymous
Not applicable

I've been trying to modify the primite attributes in XGEN for a specific index item but i'm a bit unclear on the SeExpr expression syntax and I haven't been able to find any examples that deal with the $id or the index value from other attributes beside index.

 

for example, I want to change the xgen length attribute for only primities at index[2].

 

ive dug through the api docs for maya and seexp http://wdas.github.io/SeExpr/doxygen/userdoc.html

sorry for the beginner question 🙂

 

thanks

0 Likes
Accepted solutions (1)
1,605 Views
3 Replies
Replies (3)
Message 2 of 4

Michael_Todd
Alumni
Alumni
Accepted solution

One way to do that is to use Archive Expressions. This allows you to have an expression for each archive in the list that can be passed through to other parameters such as length, width and depth (just for example)

 

ArchiveExpressions.png

 

You give the expression a name then hit the + and this will add an expression slot per archive:

 

ArcExp2.png

 

These expressions ae linked to the object index so you can add different values for each. In this instance I made them all sliders by just resetting to slider:

 

resetSlider.png

 

then you can adjust the min/max values for the sliders in the expression editor by changing the values in red after the #;

 

minmax.png

 

then you have a slider for each object in the list:

 

ArcExp3.png

 

To use these expressions you then just add the expression name, in this case ArcLength, to the parameters you want to affect.

 

ArcExp4.png

 

Then each archive will have the value from their corresponding expression passed through to the parameter.

 

Cheers

 



Michael Todd

XGen Product Owner and Designer

Message 3 of 4

Anonymous
Not applicable

ah I never noticed that tab before! Here I was trying to use the global expressions.

 

works great! thank you!

Smiley Happy

0 Likes
Message 4 of 4

Anonymous
Not applicable
Work like a charm
0 Likes