|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Scalar properties should take input from Int32I just noticed that I can't directly connect an int32 to the rotation
value properties of Orientation (X,Y,Z). In this case I wanted the angles to change by set amounts over a range, not continuously. Given that there is no loss of data in the int32 to Scalar conversion, is there any reason why I can't make such a connection? I can easily script around it, I just wondered if there was a reason behind the restriction. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ K3d-development mailing list K3d-development@... https://lists.sourceforge.net/lists/listinfo/k3d-development |
|
|
Re: Scalar properties should take input from Int32On Sun, Oct 11, 2009 at 5:26 PM, Daniel Scott Matthews
<dsmatthews@...> wrote: > I just noticed that I can't directly connect an int32 to the rotation > value properties of Orientation (X,Y,Z). In this case I wanted the > angles to change by set amounts over a range, not continuously. > > Given that there is no loss of data in the int32 to Scalar conversion, > is there any reason why I can't make such a connection? > > I can easily script around it, I just wondered if there was a reason > behind the restriction. > Also the Text property of Annotation nodes should be smart enough to take input from any type of property without the user having to do the conversion. And the bounds and sensitivity of the position values (X,Y) for Annotation2D are inappropriate too, can they be constrained to +-1 with a step of 0.1 on the up/down arrows? Could the bounds and stepping be user/script editable or is it fixed at compile time by how GTK does GUI controls? ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ K3d-development mailing list K3d-development@... https://lists.sourceforge.net/lists/listinfo/k3d-development |
|
|
Re: Scalar properties should take input from Int32Daniel Scott Matthews wrote:
> I just noticed that I can't directly connect an int32 to the rotation > value properties of Orientation (X,Y,Z). In this case I wanted the > angles to change by set amounts over a range, not continuously. > > Given that there is no loss of data in the int32 to Scalar conversion, > is there any reason why I can't make such a connection? > > I can easily script around it, I just wondered if there was a reason > behind the restriction. I don't say it that often, but in this case it just wasn't designed to work that way. Cheers, Tim [tshead.vcf] begin:vcard fn:Timothy Shead n:Shead;Timothy org:www.k-3d.org email;internet:tshead@... title:Founder x-mozilla-html:FALSE version:2.1 end:vcard ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ K3d-development mailing list K3d-development@... https://lists.sourceforge.net/lists/listinfo/k3d-development |
|
|
Re: Scalar properties should take input from Int32Daniel Scott Matthews wrote:
> Also the Text property of Annotation nodes should be smart enough to > take input from any type of property without the user having to do the > conversion. Same answer. > And the bounds and sensitivity of the position values (X,Y) for > Annotation2D are inappropriate too, can they be constrained to +-1 > with a step of 0.1 on the up/down arrows? Yes, see the latest in the main repo. Cheers, Tim [tshead.vcf] begin:vcard fn:Timothy Shead n:Shead;Timothy org:www.k-3d.org email;internet:tshead@... title:Founder x-mozilla-html:FALSE version:2.1 end:vcard ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ K3d-development mailing list K3d-development@... https://lists.sourceforge.net/lists/listinfo/k3d-development |
|
|
Re: Scalar properties should take input from Int32On Fri, Oct 16, 2009 at 2:52 PM, Timothy M. Shead <tshead@...> wrote:
> Daniel Scott Matthews wrote: > >> Also the Text property of Annotation nodes should be smart enough to >> take input from any type of property without the user having to do the >> conversion. > > Same answer. > >> And the bounds and sensitivity of the position values (X,Y) for >> Annotation2D are inappropriate too, can they be constrained to +-1 >> with a step of 0.1 on the up/down arrows? > > Yes, see the latest in the main repo. > > Cheers, > Tim > Thanks, just grabbed those changes. If I am using a StringSourceScript for the Text property of Annotation2D and I have a user property added to Annotation2D how do I reference the name of the connected node? So that I can set the string to Var Name: Value e.g. "Position.X 3.86" like this: Annotation2D.text --> StringSourceScript.userprop1 --> Position.X --> myobjectnode. Where I am doing a simple str(userprop1) in the script at the moment but want a reusable script that is smart enough to list var name and value. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ K3d-development mailing list K3d-development@... https://lists.sourceforge.net/lists/listinfo/k3d-development |
|
|
Re: Scalar properties should take input from Int32Daniel Scott Matthews wrote:
> If I am using a StringSourceScript for the Text property of > Annotation2D and I have a user property added to Annotation2D how do I > reference the name of the connected node? So that I can set the string > to Var Name: Value e.g. "Position.X 3.86" > > like this: > Annotation2D.text --> StringSourceScript.userprop1 --> Position.X --> > myobjectnode. > > Where I am doing a simple str(userprop1) in the script at the moment > but want a reusable script that is smart enough to list var name and > value. Cheers, Tim [tshead.vcf] begin:vcard fn:Timothy Shead n:Shead;Timothy org:www.k-3d.org email;internet:tshead@... title:Founder x-mozilla-html:FALSE version:2.1 end:vcard ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ K3d-development mailing list K3d-development@... https://lists.sourceforge.net/lists/listinfo/k3d-development |
|
|
Re: Scalar properties should take input from Int32On Sat, Oct 17, 2009 at 11:32 AM, Timothy M. Shead <tshead@...> wrote:
> Daniel Scott Matthews wrote: > >> If I am using a StringSourceScript for the Text property of >> Annotation2D and I have a user property added to Annotation2D how do I >> reference the name of the connected node? So that I can set the string >> to Var Name: Value e.g. "Position.X 3.86" >> >> like this: >> Annotation2D.text --> StringSourceScript.userprop1 --> Position.X --> >> myobjectnode. >> >> Where I am doing a simple str(userprop1) in the script at the moment >> but want a reusable script that is smart enough to list var name and >> value. > > Lost me here .. > that data may be a floating point value. I want to also display the Name of the property as well as the value, the text string need to contain both. I wish to do this with a scripted node StringSourceScript and I wish to be able to reuse the script so it needs to know what it is connected too. i.e I don' t want to have Output = "Rotation Z" + str(mydata) I want Output = mylabel + str(mydata) see attached example, that needs the label code, but has the var code. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ K3d-development mailing list K3d-development@... https://lists.sourceforge.net/lists/listinfo/k3d-development |
|
|
Re: Scalar properties should take input from Int32Daniel Scott Matthews wrote:
> I want to feed a string containing dynamic to the Text property of Annotation2D, > that data may be a floating point value. > > I want to also display the Name of the property as well as the value, > the text string need to contain both. > > I wish to do this with a scripted node StringSourceScript and I wish > to be able to reuse the script so it needs to know what it is > connected too. i.e I don' t want to have Output = "Rotation Z" + > str(mydata) I want Output = mylabel + str(mydata) #python p = Node.get_property("mydata") s = Document.get_dependency(p) if s: Output = s.name() + ": " + str(p.pipeline_value()) else: Output = str(p.pipeline_value()) Cheers, Tim [tshead.vcf] begin:vcard fn:Timothy Shead n:Shead;Timothy org:www.k-3d.org email;internet:tshead@... title:Founder x-mozilla-html:FALSE version:2.1 end:vcard ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ K3d-development mailing list K3d-development@... https://lists.sourceforge.net/lists/listinfo/k3d-development |
| Free embeddable forum powered by Nabble | Forum Help |