Hey,
I tried to assign an image to a Layout View Item, but the Command "Assign Image 3.1" didn´t work.
I also couldn´t find any options to select an image.
Is that function even implemented?
Greetings Doubletap
Hey,
I tried to assign an image to a Layout View Item, but the Command "Assign Image 3.1" didn´t work.
I also couldn´t find any options to select an image.
Is that function even implemented?
Greetings Doubletap
Make an Appearance using the Image, and then set that Appearance as the Appearance of the Layout Element.
From the command line this also seems to work:
Set Layout 1 Property "CanvasAppearance" "Macro"
Where Maco is the name of the Appearance. or.
Set Layout 1 Property "CanvasAppearance" 1
Where 1 is the index of the Appearance.
I was asking for setting images for elements in the layout (especially for Macros)
and is there a way to let the appearances (with the selected Image) store by a macro or plugin?
My Bad.
Ryan is right.
But you can also do it from the command line via:
Set Layout x.y Property Appearance z
x = Layout
y = Item on the layout
z= appearance index.
The trick is to use the List command and try to figure out how the tree structure looks.
For example if you enter List Layout 1 and that layout has two elements is will show NO: 1 (2) the 1 is it's index and the (2) is how many children it has. So from there you can try List Layout 1.1 or List Layout 1.2 to get the details on the sub items.
but there´s still the question, how can I store the image to an appearance via command?
I tryed the following command but it didn´t worked
Set Appearance <x> property image "test"
This process is a little bit of a mess to work out but I'll give you my thinking:
First set the image of an appearance manually. Then List Appearance 1
You will notice that in the listing of the appearance there is an appearance property. and it has a path like structure something like:
ShowData.ImagePools.Custom.<name of image>
The way the desk structures its information is in a path like structure, like on a computer.
In this case the image is coming from the ShowData/ImagesPools/Custom "folder"
The neat thing is you can refer to these paths in two ways. by name or by index.
So to figure out the indexes you just need to walk down the tree. Now if we are currently at the root the command line should show something like Admin[Fixture]>. if your not at the root you can get there by typing cd root. From here we can get a listing of all the stuff at this path (aka the root) my typing List this gives you a listing of all the objects at this level.
Next you can find one with the name "ShowData". Note it's number 11 This is the index of the ShowData path.
you can get into the ShowData path either by name or number
CD ShowData or CD 11 then you can do a listing and find the next interesting part.
You can also concatenate the paths together by using the dot.
So with all of that the short answer is:
Set Appearance 1 Property Appearance "11.2.3.1"
I'll let you figure out why
I have a feeling this might change in the future, or that's just how it works.
ok, that´s enough information to understand the Idea behind that Syntax, thanks!
And by the way you can also use Image to get the right result
Set Appearance 90 property Image "11.2.3.1"
Which is maybe easier for new operators, because it´s looking more straight forward.
Don’t have an account yet? Register yourself now and be a part of our community!