sorry for my mistake ( my english is not as good as I whish :( ).
As you i'm currently learning clutter mechanisms, and I don't know how
clipping actors.

good luck

- Eric -

2010/2/6 donn <[email protected]>

> Eric Colleu wrote:
>
>> for your "star" problem, I think you first need to create a custom Actor
>> (see pyclutter example with a triangle) instead of a Group, and then you can
>> use the classes in my pyclut.animation.py
>>
>
> I have had a look, but I don't see 'clip' anywhere in your code -- so I
> must assume that my OP was not well worded. Let me try again:
>
> By "path clipping" I mean the effect where objects are only visible when
> they intersect *within* the area of a defined path.
> So, my star example is like this:
> Star (with path defined in some svg way)
>  \_child (rectangle red) moving around relative to star
>  \_child (rectangle blue) same
>  \_child (rectangle yellow) very big in the background
>
> And what you see is a yellow 'star' with red and blue rectangles moving
> 'under' it, while being clipped when they stray out of the path that defines
> the star.
>
> There is implication in the docs that clutter.Group performs clipping on
> all children, but I cannot find how to do this with anything other than a
> rectangular set_clip() command.
>
> Thanks for your feedback - it's helping already.
>
>
> \d
> --
> Fonty Python and Things! -- http://otherwise.relics.co.za/wiki/Software
> --
> To unsubscribe send a mail to 
> [email protected]<clutter%[email protected]>
>
>

Reply via email to