Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: pyshake related question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pyshake related question



You do that through the NRiRegistry.  Say 'oldNodeName' is a python string variable containing the name of the node whose position you want to query.  And say 'newNodeName' is the name of the node whose position you want to set.  The you can then do this:

    x = shake.sdk.NRiRegistry.getKey("nodeView."+oldNodeName+".x")
    y = shake.sdk.NRiRegistry.getKey("nodeView."+oldNodeName+".y")
    shake.sdk.NRiRegistry.setKey("nodeView."+newNodeName+".x", x)
    shake.sdk.NRiRegistry.setKey("nodeView."+newNodeName+".y", y)

--Ken

On 22 Aug 2009, at 22:28, Torax Unga wrote:

Hello,
With pyshake, how can I get the position of a node in the node editor and apply it to a different node?
Thanks!
T


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Shake-sdk mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >pyshake related question (From: Torax Unga <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.