johnroper100 / CrowdMaster

Crowd Simulation for the Masses
http://crowdmaster.org
GNU General Public License v3.0
133 stars 24 forks source link

Generate Node #25

Closed scnncs closed 7 years ago

scnncs commented 7 years ago

I just installed the CrowdMaster Addon but am having trouble with the Generate Node. The 'Generate Agents' button doesn't show.

I am using Blender 2.78 & CrowdMaster 1.2.1

To test if it was a mistake in my node setup, I have downloaded the sample files from the CM website, the 'Generate Agents' button does not show on the Generate Node either however.

Has anyone come across this issue before?

johnroper100 commented 7 years ago

Which version did you download? The latest release or latest development version?

scnncs commented 7 years ago

thanks for the fast response John. I downloaded the latest release, not the development version

Peter-Noble commented 7 years ago

Hey, thanks for the report. I've not come across this issue and I've just tried with Blender 2.78 & CrowdMaster 1.2.1 and it works for me. Would you be able to open the terminal and tell me what it says?

scnncs commented 7 years ago

i get this in the 'info'

File "/Users/xxx/Library/Application Support/Blender/2.78/scripts/addons/CrowdMaster-master/cm_generation/cm_genNodes.py", line 78, in draw_buttons preferences = context.user_preferences.addons["CrowdMaster"].preferences KeyError: 'bpy_prop_collection[key]: key "CrowdMaster" not found'

johnroper100 commented 7 years ago

Go to /Users/xxx/Library/Application Support/Blender/2.78/scripts/addons/ and rename CrowdMaster-master to CrowdMaster

scnncs commented 7 years ago

Just did that. Now all nodes read 'Undefined Socket Type'

Peter-Noble commented 7 years ago

you may have to reactivate the addon and restart making the node graph.

scnncs commented 7 years ago

perfect, that worked! many thanks.

scnncs commented 7 years ago

I must oversee something again... when hitting 'Generate Agents' I received this error:

Traceback (most recent call last): File "/Users/xxx/Library/Application Support/Blender/2.78/scripts/addons/CrowdMaster/cm_generation/init.py", line 108, in execute genSpaces[tipNode].build(buildRequest) File "/Users/xxx/Library/Application Support/Blender/2.78/scripts/addons/CrowdMaster/cm_generation/cm_templates.py", line 498, in build self.inputs["Template"].build(newBuildRequest) File "/Users/xxx/Library/Application Support/Blender/2.78/scripts/addons/CrowdMaster/cm_generation/cm_templates.py", line 378, in build self.inputs["Template"].build(buildRequest) File "/Users/xxx/Library/Application Support/Blender/2.78/scripts/addons/CrowdMaster/cm_generation/cm_templates.py", line 261, in build topObj = self.inputs["Objects"].build(pos, rot, scale, new_group, defG) File "/Users/xxx/Library/Application Support/Blender/2.78/scripts/addons/CrowdMaster/cm_generation/cm_templates.py", line 152, in build obj.modifiers[modName].object = dat.objects[aName] UnboundLocalError: local variable 'aName' referenced before assignment

location: :-1

Peter-Noble commented 7 years ago

Please could you screen shot the node set up or send me the blend?

scnncs commented 7 years ago

I have reinstalled the addon, renamed the folder & created the node tree anew. Now it works, thank you

Peter-Noble commented 7 years ago

Great! Let us know if there is anything else we can help with and we'd also love to hear from you if you create anything cool or if you have any suggestions/requests.