It is currently 23 May 2013, 05:20

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: ice attribute to text (curves)
PostPosted: 14 Jul 2012, 15:13 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 347
Wonder how to display an integer from a custom attribute of null as a text or text curve. I don't want to use the "show values" function between nodes. What I need is something which looks like a custom control object along side the null. In the end it'll be numbers only.

One thing is that the solution is easy to duplicate as the amount of nulls might be changed quite often.

Cheers
Thomas


Top
 Profile  
 
 Post subject: Re: ice attribute to text (curves)
PostPosted: 14 Jul 2012, 18:15 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 347
P.S.: I could use a text curve object, parented to the null. But how could I read the custom attribute from the null and use it in the text curve? So far I can only type in text directy.


Top
 Profile  
 
 Post subject: Re: ice attribute to text (curves)
PostPosted: 15 Jul 2012, 15:32 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 347
Anybody an idea?!?!


Top
 Profile  
 
 Post subject: Re: ice attribute to text (curves)
PostPosted: 15 Jul 2012, 18:50 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 347
P.S.: I found a tutorial on Ola Madaen's web site on how to use the text curve tool to display the current frame number. As I'm not familiar with scripting: How would the script need to look like if I want the attribute from the parent? E.g. this_parent.objectNumber. But I'm not sure about this stuff surround this kind of request.


Top
 Profile  
 
 Post subject: Re: ice attribute to text (curves)
PostPosted: 15 Jul 2012, 22:39 
Offline
User avatar

Joined: 09 Jul 2012, 15:31
Posts: 106
Location: Granada, Spain
I'm not sure if a curve based text is the best solution here, you can do it using SCOPs but with the current tools availables in Softimage I think a DisplayAttribute property or an Annotation object (you can set the string/text directly via ICE) is a better approach.

Cheers!

_________________
Image
Website


Top
 Profile  
 
 Post subject: Re: ice attribute to text (curves)
PostPosted: 16 Jul 2012, 12:01 
Offline
Administrator
User avatar

Joined: 04 Jun 2009, 12:15
Posts: 3209
You could also look into the so-called "user keywords", that look way better IMHO than the clunky Annotation object, but have to be accessed through scripting AFAIK.

_________________
Broken, not stirred...


Top
 Profile  
 
 Post subject: Re: ice attribute to text (curves)
PostPosted: 16 Jul 2012, 13:46 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 347
I'd say from the looks itself, the curves are quite o.k.

I followed Ola Madsens tut

http://caffeineabuse.blogspot.de/2011/08/frame-number-as-3d-text.html

and using a scripted operator to get the current frame number works like charm.

oCurrFrame = In_UpdateContext.CurrentFrame
Out.Value.Parameters("text").Value =oCurrFrame

Though if I try to alter the code into something like this,

oCurrFrame = In_UpdateContext.this_parent.CustomPSet
Out.Value.Parameters("text").Value =oCurrFrame

I run into a "runtime error during its evaluation and will no longer be evaluated". In this case the text is parented to a null with the custom property.

I don't know anything about scripting, so I don't know how to script this correctly or whether it's actually possible.

Thanks for the tips already!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group