Page 1 of 1

"Visible if not isTrackReverse" Wrong interpreted?

PostPosted: 08 May 2018, 12:06
by Martin Ziegler
Hello guys,

on my track I have got a problem:
Without any issue I can let objects only shown, when the track is driven in reverse.
But if I want to let objects only shown, when the track is NOT driven in reverse, it didn't work for me.
Do I do anything wrong?

My scrpting.as:
{l Code}: {l Select All Code}
bool isTrackReverse(Track::TrackObject@ obj)
{
    return Track::isReverse();
}


Greetings,
Martin

Re: "Visible if not isTrackReverse" Wrong interpreted?

PostPosted: 08 May 2018, 19:13
by Mr.XX99
Hi,
I don't know if that works, but you could try this:

scrpting.as:
{l Code}: {l Select All Code}
bool isTrackForward(Track::TrackObject@ obj)
{
    return !Track::isReverse();
}

bool isTrackReverse(Track::TrackObject@ obj)
{
    return Track::isReverse();
}

and then use isTrackForward in "visible if"

Re: "Visible if not isTrackReverse" Wrong interpreted?

PostPosted: 08 May 2018, 23:54
by Auria
If you could attach the track (blend file and exported file please) to the forum, that would also help us diagnose a lot

Re: "Visible if not isTrackReverse" Wrong interpreted?

PostPosted: 23 May 2018, 16:27
by Martin Ziegler
Sry for the late reply.

Thanks for the good idea Mr.XX99, but this didn't work for me. Same result.

Here is my .blend file and exported track of this .blendfile.
https://drive.google.com/open?id=1_VYIu ... r_FY6-cEsB
If you need more, just reply, hopefully I will answer quicker this time.

Re: "Visible if not isTrackReverse" Wrong interpreted?

PostPosted: 24 May 2018, 00:24
by Auria
Hi,

Visible If isTrackForward appears to be missing on the second object, see the attached screenshot

Also make sure you have the latest version of the scripts, your screenshots appear to be from an older version