Question! plz help

ok what i tried to do is this, i have a model of a galil
rifle i made, and the model is devided into different elements, i
want to be able to address each element seperatly in the code but i
dont know how to, using the member.model method address the whole
model, another thing i tried to to is to devide the model into
seperate groups in the 3D program and export it as a W3D file, my
plan was to clonemodelfromcastmember them all and put them in a
list, i think it worked fine cuz the put(list) command actually
details all the models in the scene, the problem is that i cant see
anything in the shockwave window itself!
this was kinda hard to explain so il just put the code here
also heres the model and the director file, if anyone wanna
get down and dirty
plz help! thanks!
http://www.planetnana.co.il/pyro-ct/galil.zip
property my,m,mr
property i,e
on tran lis,u,v,w
repeat with i = 1 to count(lis)
lis
.translate(u,v,w)
end repeat
end
on beginsprite me
my = sprite(me.spritenum)
my.member.resetworld()
mr = [] --model resource
m = [:] --models list
e=member("galil").model.count
repeat with i = 1 to e
mr.add (member("galil").modelresource)
m.addprop (#"model "& i , my.member.newmodel("model "
& i , mr
end repeat
put (mr)
put (m)
tran(m,0,0,0)
end

Having looked at your code more closely, your problem appears
to be that you are trying to use a 'model resource' from one scene,
as the resource for a new model in another. Resources can't shared
across 3d cast members like this. To clone a model from one scene
into another (which therefore also clones the model's resource),
you need to use "cloneModelFromCastMember".
Here's how I would modify your code to make it functional
(attached below).
Things to note:
I have called 'preload' on the source scene (the scene we are
cloning
from). Otherwise, because this 3d cast member does not
appear on stage, it won't yet be loaded into ram, and will cause an
error when attempting to clone.
When using cloneModelFromCastmember, you have to specify the
source model by name, so I have added this code to your loop. You
could also use this 'sourceModelName' as the name for each new
model. This way, the models in your destination scene would have
the same names as the models in the source scene, instead of 'model
1' 'model 2' etc.
A couple of small things:
You didn't need to declare 'i' and 'e' as properties, since
you were only using them locally in scope. For example, you didn't
need to remember the values for 'i' and 'e' when the handler
finishes.
Your 'tran' function seems to simply translate a list of
objects, which kind of replicates the purpose of 'group' nodes in
the 3d scene, in a slower fashion. If you want to translate (or
manipulate in any way) a group of models, simply create a group
object (using lingo: newGroup) and set each model's "parent"
property to that group. You can than translate the group and all
objects will move along with it.
hope this helps!
- Ben

Similar Messages

  • Question: plz help in this

    hi,
    in XI how we will maintain for a perticular file for example at a particular time.like the poll interval if maintained at 30sec the porocessor will check the record for every 30sec but if we want to schedule at 12:00 every day to check for the record then how can we do that.
    if there is any code that need to be written plz provide code or if any steps involved plz explain in detail
    byeee

    Hi Anshul
    Simple. Set the polling interval value as Example ((  86400 (12460*60) )) and activate the channel at 6 PM.
    Another option : Use availablity timings and set the timing for the sender communication channel from 6 PM to 6:30 PM every day and in the cc give the polling interval value larger than 1800 (may be 2000).
    just check this blog.. it talks about the same
    /people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
    In your query you can use datepart() function to check the time is 6p.m or not
    i.e in your Query add this where clause....
    where datepart(hh,getdate()) = '18'
    Refer :http://help.sap.com/saphelp_nw70/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    <b>Check tHis thread discuss sthe same</b>
    Assigning an exact time to poll data using JDBC Sender?
    Regards
    Abhishek

  • I buy iTunes card and I can't download cuz I forget the answer of the questions :( plz help-! How can I send the card from the acc to my new one .

    I wrote everything up ^

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    Putting the card's balance back onto it and then to the new one also requires contacting Apple.
    (97325)

  • Reports questions plz help me

    1)How to create a button in selection screen?can u explain with simple example?
    2)How to add a gui status in a selection screen?can u explain with simple example?
    3)can you call a bdc program from a report? how? can u explain with simple example?
    4)can you call a transactionfrom a report? how? can u explain with simple example?
    5)how to create a check box option in a list? can u explain with simple example?

    HI
    <b>1)How to create a button in selection screen?can u explain with simple example?</b>
    eg:
    SELECTION-SCREEN PUSHBUTTON /15(20) button1 USER-COMMAND EXEC1.
    SELECTION-SCREEN PUSHBUTTON /15(20) button2 USER-COMMAND EXEC2.
    You can initialize the texts for the push-buttons at INITIALIZATION.
      CONCATENATE icon_green_light
                  'Button 1'(029) INTO button1.
    You can select the icon if needed,
    AT SELECTION SCREEN.
      CASE sscrfields.
        WHEN 'EXEC1'.
           perform subroutine1.
        WHEN 'EXCE2'.
           perform subroutine2.
      ENDCASE.
    <b>2)How to add a gui status in a selection screen?can u explain with simple
    example</b>
    The GUI status of a selection screen is generated by the system. The SET PF-STATUS statement in the PBO event of the selection screen has no effect on the standard GUI status. If you want to use your own GUI status for a selection screen or deactivate functions in the standard GUI status, you can use one of the following function modules in the PBO event of the selection screen:
    RS_SET_SELSCREEN_STATUS
    Sets another GUI status defined in the same ABAP program, or deactivates functions of the standard GUI status.
    RS_EXTERNAL_SELSCREEN_STATUS
    Sets a GUI status defined in an external function group. You must use the SET PF-STATUS statement to set the status in a special function module in this function group. You must pass the name of the function module that sets the status as a parameter to the function module RS_EXTERNAL_SELSCREEN_STATUS.
    check the links
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba66935c111d1829f0000e829fbfe/content.htm
    Re: how to add my  own pf status to selcetion screen.
    http://help.sap.com/saphelp_46c/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/content.htm
    <b>3)can you call a bdc program from a report? how? can u explain with simple example?</b>
    If the BDC program is ZBDC01.
    then you can call it Using:
    SUBMIT ZBDC01
    AND RETURN.
    BDC program it self we wrote in report editor
    <b>4)can you call a transactionfrom a report? how? can u explain with simple example?</b>
    by creating a transaction code for that report by going into
    GOto SE93 and create by giving the Program name and the Screen number which will be shown at the start of the transaction. For a REPORT it will be 1000.
    Alternatively in SE80 if you open you program and right click on the program name you get a menu option Create->Transaction.
    specify screen no and program name
    <b>5)how to create a check box option in a list? can u explain with simple example?</b>
    /community [original link is broken]
    <b>Reward if usefull</b>

  • Really simple question PLZ help

    A very very simple method.
    User types input 3 times.
    First two times enters integer numbers. The third input has to be +, -, * or /.
    The method uses the third input as an operator to perform the addition if it is +, subtraction if - etc.
    How do i turn the user input into an operator?
    The method's parameters are three.
    public int performAction(int num1, int num2, ???operator???)
    It returns an int which is the result of : num1 operator num2
    Thank you.
    papei
    Edited by: papei on Oct 27, 2007 6:09 AM
    Edited by: papei on Oct 27, 2007 6:43 AM

    papei wrote:
    A very very simple method.
    User types input 3 times.
    First two times enters integer numbers. The third input has to be +, -, * or /.
    The method uses the third input as an operator to perform the addition if it is +, subtraction if - etc.
    How do i turn the user input into an operator?
    The method's parameters are three.
    public int performAction(int num1, int num2, ???operator???)
    It returns an int which is the result of : num1 operator num2
    Thank you.
    papei
    Edited by: papei on Oct 27, 2007 6:09 AM
    Edited by: papei on Oct 27, 2007 6:43 AMSo you want to make a calculator?
    .. and what have you done so far..?

  • Ipod replacement question (plz help)

    hello, I was just curious, do you think apple has any 4g not color (I know its wrong)+ hp ipods left?
    I just sent mine in (sad ipod face) and they are sending me a new ipod. will a get a color screen4g, or a 5g?
    thanks.

    While I don't know the exact story on current HP iPod inventory, I do know that when I recently sent in my 4G 20GB for replacement, I was sent the same model back. So, apparently, they still have a few of the regular (read, non-HP), non-color 4G iPods left for replacement purposes. But that may no longer be the case in 6 months.
    So it's a good thing we have Apple Care on that unit in case it breaks down again in the next year. We might be able to get a 20GB Photo as a replacement!

  • I forget the answers to my security questions. What do I do plz help

    I really need help. I forget the answers to my security questions plz help me I can't purchase anything :( what do I do

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, and filling out and submitting this form.
    (96735)

  • I forgot my security questions how do I change it plz help

    I forgot my security questions plz help me change it I have like 30$ in there

    The Three Best Alternatives for Security Questions and Rescue Mail
        1. Use Apple's Express Lane.
              Go to https://expresslane.apple.com ; click 'See all products and services' at the
              bottom of the page. In the next page click 'More Products and Services, then
              'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
              ID security questions' and click 'Continue'. Please be patient waiting for the return
              phone call. It will come in time depending on how heavily the servers are being hit.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • Plz help abt j2ee

    when i install j2eesdk in my system it was installed two servers.
    1)J2EE default server
    2)cloud scape server
    i know that cloud scape server is database server so can i use this instead of sqlserver?
    what is j2ee default server? is it a web server like tomcat. if yes can i use it instead of tomcat?

    Is this a learn J2EE in 24 days book you have a hold of or what?
    Yesterday
    extract source from war
    How to execute rmi
    How to build a web browser in Java
    2 days ago
    jdbc doubt
    is it possible? (some vague question about HTML forms involving JavaScript)
    how to handle (a basic servlet question)
    plz help me (another JavaScript question)
    w to include total path of html file to open in javascript?
    3 days ago
    how is it counting no of visits? (servlet question)
    4 days ago
    plz help me (ask for defintions of a whole pile of J2EE related materials)
    So all I can ask is... is your interview coming up soon? Wiil this inane flood of questions becoming to end sooner rather than later?

  • I gotta problem with security question recovery email I'd, mistakenly I entered wrong email I'd so now I want to edit that I'd plz help me

    I gotta problem with security question recovery email I'd, mistakenly I entered wrong email I'd so now I want to edit that I'd plz help me

    expresslane.apple.com to get a hold of itunes to reset them by email the only way

  • Plz help me in  knowing ansers to these question  of wiki..................

    In IMG, activities for which SAP cannot deliver default settings?
    2 At what level the regulation of employees are defined in SAP?
    3 To integrate the PA and OM we use a switch, specify?
    4 In which feature T-Code's are maintained?
    5  What is the use of a feature? A feature can be used to determine the default values & the screen sequence when HR Master Data is maintained in the Infotypes.
    6 The employee subgroup grouping for CAP allows you to assign different employees to different
    7 Employee subgroup grouping for PCR is done to
    8  In which feature, default wage type is defined for Basic Pay Infotype
    9 The wage type that starts with'/' is known as TECHNICAL WAGE TYPES
    10  Permissible check for wage type is performed for each
    11 In SAP one can control the initiation of actions when maintaining an  infotype by
    12 How to know the user authorizations ; ORG KEY
    13  Position inherits the task of which object
    14 How do you transfer data from PA to PD?
    15 RHINT30 Used for what?
    16 Feature PACTV performs
    17  What is the use of Feature NUMKER?NUMBER RANGES
    18 What is the use of control record
    19 Are you able to perform more than one action in the same day? YES
    20 Whether System will allow the Hire and Terminate actions on the same day?NO
    21  While performing the hire action, Customer don't want to go further with out entering
    22 the data into the Infotype i.e  few Infotype data's are mandatory .how to proceed?

    hi pavani i thought u have very good knowlege in sap hr and u r answering very good questions.as i'm attending interviews i asked to reply fr these questions. then u r saying  that peers dont have any work.when sai ushasri gave 100 questions u answerd the questions. i think u should feel shy fr this .  plz help the freshers ,dont irritate.  
    hope u understand
    regards
    kishore

  • HT5312 I can't seem to get the rescue email for my security questions to reset them plz help idk what to do :o

    Plz help me idk what to do

    If you aren't receiving the email (and you've checked the spam folder on your rescue email account as well as the inbox, and tried clicking the reset link again), or you don't have a rescue email address on your account (you won't be able to add one until you can answer your questions), then you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699

  • I have forgotten my security questions and would like to reset them... My reset email is an old email and I no longer have it. How do I change this reset email? Someone plz help! 

    I have forgotten my security question answers and would like to reset them. My reset email I no longer have because I have gotten a new email. How do I change my reset email to my new email? Some one plz help! 

    You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    Changing the rescue email address requires supplying two of the answers. They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105770)

  • Plz help me to answer the security question of apple id

    plz help me to answer the security questions of apple id coz i have a great problem that i couldn't buy the itunes music with out using security questions.

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (110908)

  • HT5312 PLZ help!    I forgot my rescue e-mail and security question. What can i do?

    PLZ help!    I forgot my rescue e-mail and security question. What can i do?

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (99891)

  • HT5312 I've forget my security question answers plz help

    I've forget my security question answers plz help me

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

Maybe you are looking for

  • For PO output conditon, Could add po item level field as field catagory?

    Hi experts   Now we need setup reuturn PO, use item return flag .if we create new output type for return po, How could we setup the ouptut condition? In current conditon, there is no return po flag field. Where we could extend this field ? for such p

  • Coding buck..

    Hi Experts, I have requirements in my program that... In one case there is sales order and sales order Item number .. for each sales order item, there is one production order.. In another case for one sales order item number, there are more than one

  • Setting the proxy in a configuration file

    Hello All, Is there a configuration file where you can set http.proxyHost and http.proxyPort for a jsp web app (maybe web.xml)? I'm using tomcat 4.1. The web app in question is behind a firewall and needs to go through a proxy server to pull informat

  • Screen frozen with Apple logo

    iTunes was having issues and needed to shut itself down. The iPod still had the "Do Not Disconnect" screen on, so before unplugging it from my computer, I disconnected it with the Windows USB utility, at which point the screen changed to the Apple lo

  • Just upgraded to 9.1.0 but my Bookmarks Toolbar doesn't display when I open Firefox (I have to untick then retick it each time in View- Toolbars)!

    When I first open Firefox my Bookmarks Toolbar is missing (but it has created the space under the search bar for it). If I untick it then retick it in View->Toolbars it reappears for the session but then disappears again when I reopen Firefox.