Acces Brush in project in code

Anything related to Hollywood Designer goes in here
Post Reply
TearsOfMe
Posts: 15
Joined: Fri Apr 24, 2020 2:15 pm

Acces Brush in project in code

Post by TearsOfMe »

Is there a way to acces the brushes that i create with designer in the code of an action object?

P.S: Hier mal auf deutsch, weil ich nicht weiss ob die Frage oben so verstaendlich ist. Also ich habe in meinem Designer Projekt 20 Pinsel erstellt und wuerde diese jetzt gerne in einen Code benutzen. Geht das ueberhaupt?
Bugala
Posts: 1168
Joined: Sun Feb 14, 2010 7:11 pm

Re: Acces Brush in project in code

Post by Bugala »

Yes there is. I might take a better look at this at some other point.

But basically idea is that first you make a brush object normally with designer. Then you name that brush object, I dont recall was it name or that ID thing you had to name, but you could use same name for both at first.

Then when you make action object with code, you can use brush commands using that name.

as example:

Code: Select all

MoveBrush("mydesignerbrushname", 100, 100)
I think that is how it works, but as I said, not checking at this moment right now, so might be giving you wrong instructions here.
Bugala
Posts: 1168
Joined: Sun Feb 14, 2010 7:11 pm

Re: Acces Brush in project in code

Post by Bugala »

This isn't exactly about that, but might help you anyway:
https://www.youtube.com/watch?v=2OF8gfDHuNg

This is Designer tutorial teaching a bit about coding.
TearsOfMe
Posts: 15
Joined: Fri Apr 24, 2020 2:15 pm

Re: Acces Brush in project in code

Post by TearsOfMe »

Ahh...i look on the video and i think i get it.
Using layer in place of brush seems to work.
Thanks a lot.
Post Reply