Styles and the Ruby API
-
Hi all,
I'd like to create a custom Style object with Ruby, but to invoke add_style, I need an existing *.style file. Is there any way to create one of these files in code? Is there any way to configure settings of an existing Style object?
The Style class only provides methods for accessing the style's name and description.
Thanks,
Matt
-
my guess is that youd have to use a program outside SU to create the .style file, im not sure how accessible the style builder is in terms of accessing it from another program though.
-
Many Style settings can be accessed through the RenderingOptions class.
But, there does not appear to be a way to make a new Style, or make the current Style unique using Ruby. You can (I think) copy a Style to a new file on your computer, and then load it using add_style, and finally use Ruby to make the changes you desire.
-
I find this thread of interest as well. I was very puzzled when I wanted to access some style information.
Advertisement