PDA

View Full Version : Iteration Path


AkaKico
04-20-2007, 04:27 PM
I'm setting up a super simple Xpresso. It's just a spline object that whatever children it has will be Enabled/Disabled when the the spline is Enabled/Disabled. Just a workflow thing with a one click speed :).


Two questions/problems.

First of all, I got it working in 9.6 after it was wierd in 10.1. (see attached) When I open it in 9.6 it works fine and the "Enabled" state refreshes instantly. When I open the same file in 10.1, the Enabled green Checkmark doesn't refresh and lags a click behind (strangely the objects do respond correctly in the viewport). Why is this?

Second, I got it working the way I want if the objects are direct children of the spline. But what would the Iteration Path be to select every single child of every object that is contained in it's hierarchy? Like a child of a child and so on. You'll see what I mean in the attached file.

Thanks so much in advance!

Darter
04-21-2007, 01:22 AM
But what would the Iteration Path be to select every single child of every object that is contained in it's hierarchy? Like a child of a child and so on. You'll see what I mean in the attached file.

This is better done using COFFEE. Here's a simple script for toggling the Enabled state of all objects including and below the active object.

Automatically passing the Enabled state of an object to all objects below can be done using a COFFEE tag.

EDIT: Script updated to work correctly starting at any hierarchy level vs root level only.

AkaKico
04-24-2007, 09:26 PM
Thanks Darter! I'll check it out now :)

EDIT:
This is fantastic in it's simplicity. I've already worked it into my layout and given it a shortcut key :D

CGTalk Moderation
04-24-2007, 09:26 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.