Harris Broadcast Communications Division forums.inscriber.com
Inscriber Users Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RTX.NET 7.0 Layout and GX

 
Post new topic   Reply to topic    forums.inscriber.com Forum Index -> RTX .NET
View previous topic :: View next topic  
Author Message
kolbezenb


Joined: 20 Jul 2010
Posts: 2

PostPosted: Fri Jul 23, 2010 5:32 am    Post subject: RTX.NET 7.0 Layout and GX Reply with quote

How can I change the position and text attributes of text object with knowing tag name?
After I read the layout (layout.filename = "myfilename.SCRIBE"), I want to read the position and text attributes of text object with tag name (rtx.cg.tag("tagname")). After that I want to change the position, font style and color of that text object? How can I do it?
Back to top
View user's profile Send private message
Paul


Joined: 26 Jul 2010
Posts: 2

PostPosted: Mon Jul 26, 2010 4:07 pm    Post subject: Reply with quote

From your layout you can use CG.Editor to do something like...

using( Rtx.CG.Editor editor = new CG.Editor(layout))
{
editor.Root.Actions.TagManipulation.SelectionByTag.Name = "SomeTagName";
editor.Root.Actions.TagManipulation.SelectionByTag.SelectAllWithName.Fire();
editor.Root.TextAndGraphicsAttributes.Placement.Position.X = 100;
editor.Root.TextAndGraphicsAttributes.StyleData.Face.Shader.Colouring.SolidColour.All.Red = 0.5;
}

There might be some earlier posts on using CG.Editor.

Does this help, Paul
Back to top
View user's profile Send private message
kolbezenb


Joined: 20 Jul 2010
Posts: 2

PostPosted: Tue Jul 27, 2010 8:28 am    Post subject: Reply with quote

Hi!

Thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.inscriber.com Forum Index -> RTX .NET All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum