Forum Replies Created

Page 1 of 2
  • You could lower your screen resolution. This will increase the size of UI elements like texts and icons and your lines should become thicker as well. Good luck!

  • Try this – not on my Mac atm either, but the .update() solved this issue for me in the past:

    testColorPicker();

    function testColorPicker(){
    var myWindow = new Window("dialog", "Test Color", undefined, {resizeable: true});

    myWindow.add("button", undefined, "show picker").onClick = function(){
    var color_decimal = $.colorPicker();
    myWindow.update();
    }

    myWindow.show();
    }

  • Lars Jandel

    February 2, 2018 at 6:30 pm in reply to: open last project – script

    Here you go. Cheers, Lars.

    app.executeCommand(2330);

  • Lars Jandel

    May 1, 2017 at 7:19 am in reply to: Where’s Character?

    Which edition of C4D are you running?
    I am afraid, the full character stuff is only available in the Studio edition…

    https://www.maxon.net/en/products/infosites/product-comparison/

  • Hi Dan,

    I managed to add the last idea myself and the code looks still okay. ????
    Nice thing about this 3rd slider, you can use it for a proportional offset of C itself – based on the distance of A and B. First I was only thinking about the space between A and B, but with this multiplier, you have the additional option to place it outside but still on the same vector calculated from A and B. Just like the x offset slider was already doing it, but now from a defined position on the scale running trough A and B.

    Thanks, Lars.

    p1 = thisComp.layer("A").transform.position;
    p2 = thisComp.layer("B").transform.position;
    vec = p2 - p1;
    n = normalize(vec);
    sx = effect("X Offset")("Slider");
    sy = effect("Y Offset")("Slider");
    so = effect("X Offset Origin")("Slider");
    (p1+p2)/2 + sy*[n[1],-n[0]] + sx*n + so*vec/2

  • Good Morning Dan!

    Thanks so much! Now, with even more control. ????
    An x offset via percentage, 0 for A, 50 for center, 100 for B with override was easy and I already had that.
    Now with a pixel based offset on the x axis, another optional control – great!

    To make this series “complete”:
    Would it be possible to have a third slider, which could be set to e.g. -1, 0, 1 and this would define the start for the offset in pixels on the x axis?
    0 : as right now, from the center
    -1 : starting from A
    1 : starting from B

    Thanks so much for you time – as long you are having fun! ????

    Lars

  • Dan – you did it again!
    This is what I was aiming for. Just a few lines of code – fantastic.
    Thanks to you, I am having now the intended result and
    thanks to Steve an alternative for a dynamic option!

    Have a nice weekend Dan,
    thanks again,
    cheers,
    Lars. ????

  • Thanks Steve!
    The first solution is already great.
    Yeah, maybe there is a completely different approach – let’s see, if so speaks up. 😉
    Thanks again for your time and one working set up – will be used for sure!

  • As a follow up:
    I will definitely use the solution – it does, what I was aiming for and is very dynamic.
    Now I was just wondering, if it would be possible to achieve a fixed offset on the y-axis. Right now, the offset works in proportion to the distance between A and B: As they get closer the offset shrinks and vice versa. As said, it is nice and cool to bring all objects to the same point when compressing the distance.
    As an alternative, it would be great to set a fixed offset in pixels via the slider. I played a bit with the expression, but as it is quite hard for me to bend my head around these vector(?) calculations, I did not succeed… ????
    Don’t know, if this is possible..?

  • YES – it works!!!
    Thanks so much Steve ☺
    I was looking through the forums and trying stuff myself, but couldn’t figure it out…
    And your solution is just as I like it, without limitations (using a linear expression) – perfect!

    Thanks again, Lars. 🙂

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy