Lars Jandel
Forum Replies Created
-
Lars Jandel
March 25, 2019 at 7:26 pm in reply to: Is it possible to make the display lines of a polygon edge thicker in C4D for better visibility?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!
-
Lars Jandel
March 17, 2019 at 10:03 pm in reply to: Script: Closing $.colorPicker(); also closes the Script UI window (dialog)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();
} -
Here you go. Cheers, Lars.
app.executeCommand(2330); -
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/
-
Lars Jandel
May 1, 2017 at 6:29 am in reply to: offset on local y-axis of auto positioned and rotated object between two pointsHi 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 -
Lars Jandel
April 30, 2017 at 6:51 am in reply to: offset on local y-axis of auto positioned and rotated object between two pointsGood 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 BThanks so much for you time – as long you are having fun! ????
Lars
-
Lars Jandel
April 29, 2017 at 6:42 pm in reply to: offset on local y-axis of auto positioned and rotated object between two pointsDan – 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. ???? -
Lars Jandel
April 29, 2017 at 5:46 am in reply to: offset on local y-axis of auto positioned and rotated object between two pointsThanks 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! -
Lars Jandel
April 28, 2017 at 6:34 pm in reply to: offset on local y-axis of auto positioned and rotated object between two pointsAs 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..? -
Lars Jandel
April 28, 2017 at 5:10 pm in reply to: offset on local y-axis of auto positioned and rotated object between two pointsYES – 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. 🙂

