Hi co3Darts,
re:
> This script is simple and just a if not check? Why is this not possible for geometry?
> I don't know javascript so I'm clueless
>
> script:moi.geometryDatabase.getObjects().getCurves().setProperty( 'hidden', true );
That script is set up to work on a list of objects which is what getCurves() returns. In order to do what you want you would need to access one individual curve out of the list so you can look at its hidden property.
Try this:
script: var crvs = moi.geometryDatabase.getObjects().getCurves(); if ( crvs.length > 0 ) crvs.setProperty( 'hidden', !crvs.item(0).hidden );
- Michael
|