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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement